feat: Implement Novu username and update functionality

This commit is contained in:
gpt-engineer-app[bot]
2025-10-01 14:01:44 +00:00
parent 268fa63ebc
commit 18669a4e6c
6 changed files with 110 additions and 2 deletions

View File

@@ -111,6 +111,14 @@ export function NotificationsTab() {
if (result.success) {
toast.success("Notification preferences saved successfully");
// Also update Novu subscriber profile to sync channel preferences
if (notificationService.isEnabled()) {
await notificationService.updateSubscriber({
subscriberId: user.id,
email: user.email,
});
}
} else {
throw new Error(result.error || 'Failed to save preferences');
}