several improvements

This commit is contained in:
Ulf Gebhardt 2025-04-05 03:47:18 +02:00
parent 14fefd2cfc
commit 281070e961
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
4 changed files with 1 additions and 22 deletions

View File

@ -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) => {

View File

@ -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)`,

View File

@ -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()

View File

@ -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)