adjusted seed & factories

This commit is contained in:
Ulf Gebhardt 2022-02-03 21:22:32 +01:00
parent 31f9ac59e3
commit 6a03b2d34d
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
4 changed files with 0 additions and 4 deletions

View File

@ -14,7 +14,6 @@ define(User, (faker: typeof Faker, context?: UserContext) => {
user.lastName = context.lastName ? context.lastName : faker.name.lastName()
user.username = context.username ? context.username : faker.internet.userName()
user.disabled = context.disabled ? context.disabled : false
user.loginUserId = context.loginUserId ? context.loginUserId : randomInt(999999)
user.indexId = 0
user.description = context.description ? context.description : faker.random.words(4)
// TODO Create real password and keys/hash

View File

@ -1,5 +1,4 @@
export interface UserContext {
loginUserId?: number
pubKey?: Buffer
email?: string
firstName?: string

View File

@ -1,6 +1,5 @@
export interface UserInterface {
// from user
loginUserId?: number
email?: string
firstName?: string
lastName?: string

View File

@ -40,7 +40,6 @@ const createUserContext = (context: UserInterface): UserContext => {
return {
pubKey: context.pubKey,
email: context.email,
loginUserId: context.loginUserId,
firstName: context.firstName,
lastName: context.lastName,
username: context.username,