소스 검색

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

GitOrigin-RevId: 31e3420d6f5834a9da405eea99f2f353a39a0f11
Jimmy Domagala-Tang 9 달 전
부모
커밋
42a80a1ca3
1개의 변경된 파일2개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 9
      tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_recipient_id.mjs

+ 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
   },
 ]