diff options
Diffstat (limited to 'populateDb.ts')
-rw-r--r-- | populateDb.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/populateDb.ts b/populateDb.ts index a666427..1a3b016 100644 --- a/populateDb.ts +++ b/populateDb.ts @@ -39,11 +39,11 @@ const createPoll = (authorId: string, generateImageData:()=> ImageDataSchema): P }); }; -const createUser = (name: string): Promise<UserSchema> => { +const createUser = (username: string): Promise<UserSchema> => { return app.service('users').create({ avatarUrl: _.sample(imageUrls) || '', password: 'supersecret', - name + username }); }; |