Merge branch 'setup-seeding' of github.com:gradido/gradido into setup-seeding

This commit is contained in:
Moriz Wahl 2021-11-26 20:11:29 +01:00
commit 1a22520429

View File

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