aboutsummaryrefslogtreecommitdiff
path: root/populateDb.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-14 17:09:19 +0300
committereug-vs <eug-vs@keemail.me>2020-06-14 17:12:07 +0300
commitfc4bdecdcd8abc7a2adaeb4b7f209f6930846ffa (patch)
tree73ffa18ac2cd6fd34344821b080574fc4b95449c /populateDb.ts
parent4e7a71671bd21a4138909374b1124d269493551e (diff)
downloadwhich-api-fc4bdecdcd8abc7a2adaeb4b7f209f6930846ffa.tar.gz
feat: use hashPassword hook
Diffstat (limited to 'populateDb.ts')
-rw-r--r--populateDb.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/populateDb.ts b/populateDb.ts
index 0a89cc9..a21b669 100644
--- a/populateDb.ts
+++ b/populateDb.ts
@@ -46,6 +46,7 @@ const createPoll = (authorId: string): Promise<PollSchema> => {
const createUser = (name: string): Promise<UserSchema> => {
return app.service('users').create({
avatarUrl: _.sample(imageUrls) || '',
+ password: 'supersecret',
name
});
};