aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-25 22:48:44 +0300
committereug-vs <eug-vs@keemail.me>2020-06-25 22:48:44 +0300
commitc4619eb6d3fb3b9df5d921250391bb49700f055d (patch)
tree2beb1444873b4981f6eb4456e723e5fb867e28fb
parent2156cb4cb0d84d7f3905d97ef789c3f9fde22548 (diff)
downloadwhich-api-c4619eb6d3fb3b9df5d921250391bb49700f055d.tar.gz
fix: fake auth in populateDB script
-rw-r--r--populateDb.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/populateDb.ts b/populateDb.ts
index 6daa2f8..e978403 100644
--- a/populateDb.ts
+++ b/populateDb.ts
@@ -60,7 +60,7 @@ const createVote = (userId: string, pollId: string): Promise<Vote> => {
return app.service('votes').create({
pollId,
which: _.sample(choices)
- }, { user: { _id: userId } });
+ }, { user: { _id: userId }, authenticated: true });
};