From fe529f4a7739ac6dd9a30652279818519565ec6a Mon Sep 17 00:00:00 2001 From: eug-vs Date: Thu, 25 Jun 2020 18:52:01 +0300 Subject: style!: fix all linting errors --- populateDb.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'populateDb.ts') diff --git a/populateDb.ts b/populateDb.ts index 757280a..6daa2f8 100644 --- a/populateDb.ts +++ b/populateDb.ts @@ -36,7 +36,7 @@ const choices = [ const createPoll = (authorId: string): Promise => { const generateImageData = () => ({ - url: _.sample(imageUrls) || '', + url: _.sample(imageUrls) || '' }); return app.service('polls').create({ @@ -61,7 +61,7 @@ const createVote = (userId: string, pollId: string): Promise => { pollId, which: _.sample(choices) }, { user: { _id: userId } }); -} +}; const populate = async () => { @@ -72,7 +72,7 @@ const populate = async () => { return createPoll(user?._id || ''); }); - const votes = await bluebird.map(users, user => { + await bluebird.map(users, user => { const pollsToVote = _.sampleSize(polls, _.random(0, POLLS_AMOUNT)); return bluebird.map(pollsToVote, poll => createVote(user?._id || '', poll?._id || '')); }); -- cgit v1.2.3