From 281070e961e49c9ee284df8f07ea34f4c9ecdca5 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 5 Apr 2025 03:47:18 +0200 Subject: [PATCH] several improvements --- backend/src/db/factories.ts | 7 ------- backend/src/db/migrate/store.ts | 7 ------- ...939-add-sendNotificationEmails-property-to-all-users.ts | 2 +- backend/src/schema/resolvers/registration.ts | 7 ------- 4 files changed, 1 insertion(+), 22 deletions(-) diff --git a/backend/src/db/factories.ts b/backend/src/db/factories.ts index c787fd1ab..53924d080 100644 --- a/backend/src/db/factories.ts +++ b/backend/src/db/factories.ts @@ -70,13 +70,6 @@ Factory.define('basicUser') termsAndConditionsAgreedAt: '2019-08-01T10:47:19.212Z', allowEmbedIframes: false, showShoutsPublicly: false, - emailNotificationsCommentOnObservedPost: true, - emailNotificationsPostByFollowedUser: true, - emailNotificationsPostInGroup: true, - emailNotificationsGroupMemberJoined: true, - emailNotificationsGroupMemberLeft: true, - emailNotificationsGroupMemberRemoved: true, - emailNotificationsGroupMemberRoleChanged: true, locale: 'en', }) .attr('slug', ['slug', 'name'], (slug, name) => { diff --git a/backend/src/db/migrate/store.ts b/backend/src/db/migrate/store.ts index ca1525f0c..0a9788b9a 100644 --- a/backend/src/db/migrate/store.ts +++ b/backend/src/db/migrate/store.ts @@ -62,13 +62,6 @@ const createDefaultAdminUser = async (session) => { createdAt: toString(datetime()), allowEmbedIframes: false, showShoutsPublicly: false, - emailNotificationsCommentOnObservedPost: true - emailNotificationsPostByFollowedUser: true - emailNotificationsPostInGroup: true - emailNotificationsGroupMemberJoined: true - emailNotificationsGroupMemberLeft: true - emailNotificationsGroupMemberRemoved: true - emailNotificationsGroupMemberRoleChanged: true deleted: false, disabled: false })-[:PRIMARY_EMAIL]->(e)`, diff --git a/backend/src/db/migrations/20210923140939-add-sendNotificationEmails-property-to-all-users.ts b/backend/src/db/migrations/20210923140939-add-sendNotificationEmails-property-to-all-users.ts index 0d1f4fb91..590a7f12f 100644 --- a/backend/src/db/migrations/20210923140939-add-sendNotificationEmails-property-to-all-users.ts +++ b/backend/src/db/migrations/20210923140939-add-sendNotificationEmails-property-to-all-users.ts @@ -1,6 +1,6 @@ import { getDriver } from '../../db/neo4j' -export const description = '' +export const description = 'Transforms the `sendNotificationEmails` property on User to a multi value system' export async function up(next) { const driver = getDriver() diff --git a/backend/src/schema/resolvers/registration.ts b/backend/src/schema/resolvers/registration.ts index de23a91e5..f22e499a8 100644 --- a/backend/src/schema/resolvers/registration.ts +++ b/backend/src/schema/resolvers/registration.ts @@ -98,13 +98,6 @@ const signupCypher = (inviteCode) => { SET user.updatedAt = toString(datetime()) SET user.allowEmbedIframes = false SET user.showShoutsPublicly = false - SET user.emailNotificationsCommentOnObservedPost = true - SET user.emailNotificationsPostByFollowedUser = true - SET user.emailNotificationsPostInGroup = true - SET user.emailNotificationsGroupMemberJoined = true - SET user.emailNotificationsGroupMemberLeft = true - SET user.emailNotificationsGroupMemberRemoved = true - SET user.emailNotificationsGroupMemberRoleChanged = true SET email.verifiedAt = toString(datetime()) WITH user OPTIONAL MATCH (post:Post)-[:IN]->(group:Group)