mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'setup-seeding' of github.com:gradido/gradido into setup-seeding
This commit is contained in:
commit
1a22520429
@ -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