Update backend/src/seeds/factory/creation.ts

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
Moriz Wahl 2022-03-16 21:12:08 +01:00 committed by GitHub
parent eb586a118f
commit 691d734c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export const creationFactory = async (
): Promise<void> => {
const { mutate, query } = client
// get Peter Lustig
// get Peter Lustig's user id
const peterLustig = await User.findOneOrFail({ where: { email: 'peter@lustig.de' } })
const variables = { ...creation, moderator: peterLustig.id }