aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 });
};