aAdd notif for interest indicator

This commit is contained in:
MartinBraquet
2026-02-24 19:59:02 +01:00
parent 3c08ba3cae
commit 2b0cd7ad3a

View File

@@ -180,3 +180,30 @@ export const createSomeNotifications = async () => {
)
console.log(`Created some notification template ${templateId} for ${count} users`)
}
export const createInterestIndicatorNotifications = async () => {
const translations: Omit<NotificationTemplateTranslation, 'template_id' | 'created_time'>[] = [
// French translation
{
locale: 'fr',
title: 'Nouveau : Signaux dintérêt privés',
source_text:
'Vous pouvez désormais exprimer votre intérêt en privé à la fin de chaque profil. Lautre personne nest informée que si lintérêt est réciproque.',
},
]
// Create template with translations
const {templateId, count} = await createBulkNotification(
{
sourceType: 'info',
title: 'New: Private interest signals',
sourceText:
'You can now express interest privately at the end of each profile. The other person is only notified if its mutual.',
sourceSlug: '/',
sourceUserAvatarUrl: COMPASS_LOGO_URL,
sourceUpdateType: 'created',
},
translations,
)
console.log(`Created some notification template ${templateId} for ${count} users`)
}