From 77125e404f523eba2dd52687650d6ebe2f56d0e4 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 4 Oct 2022 05:03:02 +0200 Subject: [PATCH] createPostMutation as function --- backend/src/db/seed.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/db/seed.js b/backend/src/db/seed.js index d693f9905..242b3a856 100644 --- a/backend/src/db/seed.js +++ b/backend/src/db/seed.js @@ -709,7 +709,7 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] await Promise.all([ mutate({ - mutation: createPostMutation, + mutation: createPostMutation(), variables: { id: 'p2', title: `Nature Philosophy Yoga`, @@ -718,7 +718,7 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] }, }), mutate({ - mutation: createPostMutation, + mutation: createPostMutation(), variables: { id: 'p7', title: 'This is post #7', @@ -727,7 +727,7 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] }, }), mutate({ - mutation: createPostMutation, + mutation: createPostMutation(), variables: { id: 'p8', image: faker.image.unsplash.nature(), @@ -737,7 +737,7 @@ const languages = ['de', 'en', 'es', 'fr', 'it', 'pt', 'pl'] }, }), mutate({ - mutation: createPostMutation, + mutation: createPostMutation(), variables: { id: 'p12', title: 'This is post #12',