mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update database/src/factories/login-user-backup.factory.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
parent
0f22a2fe1c
commit
ff704bd9f4
@ -4,8 +4,9 @@ import { LoginUserBackup } from '../../entity/LoginUserBackup'
|
||||
import { LoginUserBackupContext } from '../interface/UserContext'
|
||||
|
||||
define(LoginUserBackup, (faker: typeof Faker, context?: LoginUserBackupContext) => {
|
||||
if (!context) context = {}
|
||||
if (!context.userId) throw new Error('LoginUserBackup: No userId present!')
|
||||
if (!context || !context.userId) {
|
||||
throw new Error('LoginUserBackup: No userId present!')
|
||||
}
|
||||
|
||||
const userBackup = new LoginUserBackup()
|
||||
// TODO: Get the real passphrase
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user