|
|
@@ -281,6 +281,26 @@ function personalAndGroupSubscriptions(userId) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+function ieeeCollabratecRetirement(userId) {
|
|
|
+ return {
|
|
|
+ key: 'notification-ieee-collabratec-retirement',
|
|
|
+ create(callback) {
|
|
|
+ NotificationsHandler.createNotification(
|
|
|
+ userId,
|
|
|
+ this.key,
|
|
|
+ 'notification_ieee_collabratec_retirement',
|
|
|
+ {},
|
|
|
+ new Date('2024-08-01'),
|
|
|
+ false,
|
|
|
+ callback
|
|
|
+ )
|
|
|
+ },
|
|
|
+ read(callback) {
|
|
|
+ NotificationsHandler.markAsReadByKeyOnly(this.key, callback)
|
|
|
+ },
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const NotificationsBuilder = {
|
|
|
// Note: notification keys should be url-safe
|
|
|
dropboxUnlinkedDueToLapsedReconfirmation,
|
|
|
@@ -292,6 +312,7 @@ const NotificationsBuilder = {
|
|
|
tpdsFileLimit,
|
|
|
groupInvitation,
|
|
|
personalAndGroupSubscriptions,
|
|
|
+ ieeeCollabratecRetirement,
|
|
|
}
|
|
|
|
|
|
NotificationsBuilder.promises = {
|
|
|
@@ -316,6 +337,9 @@ NotificationsBuilder.promises = {
|
|
|
personalAndGroupSubscriptions(userId) {
|
|
|
return promisifyAll(personalAndGroupSubscriptions(userId))
|
|
|
},
|
|
|
+ ieeeCollabratecRetirement(userId) {
|
|
|
+ return promisifyAll(ieeeCollabratecRetirement(userId))
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
module.exports = NotificationsBuilder
|