From c4619eb6d3fb3b9df5d921250391bb49700f055d Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 22:48:44 +0300 Subject: fix: fake auth in populateDB script --- populateDb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => { return app.service('votes').create({ pollId, which: _.sample(choices) - }, { user: { _id: userId } }); + }, { user: { _id: userId }, authenticated: true }); }; -- cgit v1.2.3