Procházet zdrojové kódy

adding test for processNotifications

GitOrigin-RevId: 35825755344e9cc10f9e571a253a2eae982b306a
Jimmy Domagala-Tang před 11 měsíci
rodič
revize
d77be2c94e

+ 1 - 1
services/web/config/settings.defaults.js

@@ -720,7 +720,7 @@ module.exports = {
     parseInt(process.env.COMMENT_MENTION_DELAY_MINUTES) || 30 * 60 * 1000, // 30 minutes
 
   // Comment mention notifications will wait at least this long before being sent
-  commentMentionMinDelay:
+  commentMentionMinAge:
     parseInt(process.env.COMMENT_MENTION_DELAY_MINUTES) || 10 * 60 * 1000, // 10 minutes
 
   // Maximum JSON size in HTTP requests

+ 7 - 0
tools/migrations/20251023094210_change_emailtNotifications_index_from_scheduledAt_to_createdAt.mjs

@@ -23,6 +23,13 @@ const newIndexes = [
     name: 'createdAt_1',
     expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours
   },
+  {
+    key: {
+      project_id: 1,
+    },
+    name: 'project_id_1',
+    expireAfterSeconds: 60 * 60 * 24, // expire after 24 hours
+  },
 ]
 
 const migrate = async client => {