aboutsummaryrefslogtreecommitdiff
path: root/populateDb.ts
diff options
context:
space:
mode:
Diffstat (limited to 'populateDb.ts')
-rw-r--r--populateDb.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/populateDb.ts b/populateDb.ts
index ae42d86..a666427 100644
--- a/populateDb.ts
+++ b/populateDb.ts
@@ -29,9 +29,7 @@ const names: string[] = [
];
-
const createPoll = (authorId: string, generateImageData:()=> ImageDataSchema): Promise<PollSchema> => {
-
return app.service('polls').create({
contents: {
left: generateImageData(),
@@ -60,7 +58,7 @@ const populate = async () => {
await bluebird.mapSeries(new Array(POLLS_AMOUNT), async () => {
const sampleUser = _.sample(users);
- return createPoll(sampleUser?._id,generateImageData);
+ return createPoll(sampleUser?._id, generateImageData);
});
};