Просмотр исходного кода

feat: moving to grouping by primarily recipient, then by project

GitOrigin-RevId: 31e3420d6f5834a9da405eea99f2f353a39a0f11
Jimmy Domagala-Tang 9 месяцев назад
Родитель
Сommit
42a80a1ca3

+ 2 - 9
tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs → tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_recipient_id.mjs

@@ -18,16 +18,9 @@ const oldIndexes = [
 const newIndexes = [
   {
     key: {
-      createdAt: 1,
+      recipient_id: 1,
     },
-    name: 'createdAt_1',
-    expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours
-  },
-  {
-    key: {
-      project_id: 1,
-    },
-    name: 'project_id_1',
+    name: 'recipientId_1',
     expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours
   },
 ]