mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
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:
parent
711061b0c0
commit
bda0de0249
@ -28,7 +28,6 @@ const createDefaultAdminUser = async () => {
|
||||
createdAt: toString(datetime()),
|
||||
allowEmbedIframes: false,
|
||||
showShoutsPublicly: false,
|
||||
sendNotificationEmails: true,
|
||||
deleted: false,
|
||||
disabled: false
|
||||
})-[:PRIMARY_EMAIL]->(e)`,
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user