diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-24 00:58:45 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-24 00:58:45 +0300 |
commit | 75e527334e4e9a94b63704f87aa650c75f13891c (patch) | |
tree | c05aef37007c85321aa75b118de7d4ffe0c58b6a /populateDb.ts | |
parent | b054bd6cf5be0eed0c17fbacec8bcc09cf013d44 (diff) | |
download | which-api-75e527334e4e9a94b63704f87aa650c75f13891c.tar.gz |
feat: migrate to latest which-types
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 }); }; |