aboutsummaryrefslogtreecommitdiff
path: root/populateDb.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-24 00:58:45 +0300
committereug-vs <eug-vs@keemail.me>2020-06-24 00:58:45 +0300
commit75e527334e4e9a94b63704f87aa650c75f13891c (patch)
treec05aef37007c85321aa75b118de7d4ffe0c58b6a /populateDb.ts
parentb054bd6cf5be0eed0c17fbacec8bcc09cf013d44 (diff)
downloadwhich-api-75e527334e4e9a94b63704f87aa650c75f13891c.tar.gz
feat: migrate to latest which-types
Diffstat (limited to 'populateDb.ts')
-rw-r--r--populateDb.ts4
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
});
};