fix(backend): fixing admin email notification settings (#8356)

* Fix admin e-mail notification settings

* Optimize migration '20250405030454-email-notification-settings.ts' down

* Update backend/src/db/admin.ts

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>

---------

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Wolfgang Huß 2025-04-11 12:00:15 +02:00 committed by GitHub
parent 711061b0c0
commit bda0de0249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,6 @@ const createDefaultAdminUser = async () => {
createdAt: toString(datetime()),
allowEmbedIframes: false,
showShoutsPublicly: false,
sendNotificationEmails: true,
deleted: false,
disabled: false
})-[:PRIMARY_EMAIL]->(e)`,

View File

@ -44,7 +44,7 @@ export async function down(next) {
// Implement your migration here.
await transaction.run(`
MATCH (user:User)
SET user.sendNotificationEmails = true
SET user.sendNotificationEmails = user.emailNotificationsMention
REMOVE user.emailNotificationsCommentOnObservedPost
REMOVE user.emailNotificationsMention
REMOVE user.emailNotificationsChatMessage