mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
adjusted seed & factories
This commit is contained in:
parent
31f9ac59e3
commit
6a03b2d34d
@ -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
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
export interface UserContext {
|
||||
loginUserId?: number
|
||||
pubKey?: Buffer
|
||||
email?: string
|
||||
firstName?: string
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
export interface UserInterface {
|
||||
// from user
|
||||
loginUserId?: number
|
||||
email?: string
|
||||
firstName?: string
|
||||
lastName?: string
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user