From fd022c79923c596e049d29f9e0fc2479a5b6b210 Mon Sep 17 00:00:00 2001 From: Matt Rider Date: Thu, 8 Aug 2019 10:19:38 +0200 Subject: [PATCH] Fix mentions in seeds --- backend/src/seed/seed-db.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/backend/src/seed/seed-db.js b/backend/src/seed/seed-db.js index 5d6b141e2..30bf68b01 100644 --- a/backend/src/seed/seed-db.js +++ b/backend/src/seed/seed-db.js @@ -2,8 +2,7 @@ import faker from 'faker' import Factory from './factories' /* eslint-disable no-multi-spaces */ -; -(async function () { +;(async function() { try { const f = Factory() const [racoon, rabbit, wolf, bear, turtle, rhino] = await Promise.all([ @@ -302,11 +301,14 @@ import Factory from './factories' }), ]) - const mention1 = 'Hey @jenny-rostock, what\'s up?' + const mention1 = + 'Hey @jenny-rostock, what\'s up?' const mention2 = - 'Hey @jenny-rostock, here is another notification for you!' - const hashtag1 = 'See #NaturphilosophieYoga can really help you!' - const hashtagAndMention1 = 'The new physics of #QuantenFlussTheorie can explain #QuantumGravity! @peter-lustig got that already. ;-)' + 'Hey @jenny-rostock, here is another notification for you!' + const hashtag1 = + 'See #NaturphilosophieYoga can really help you!' + const hashtagAndMention1 = + 'The new physics of #QuantenFlussTheorie can explain #QuantumGravity! @peter-lustig got that already. ;-)' await Promise.all([ asAdmin.create('Post', { @@ -580,8 +582,10 @@ import Factory from './factories' }), ]) - const mentionInComment1 = 'I heard @jenny-rostock, practice it since 3 years now.' - const mentionInComment2 = 'Did @peter-lustig told you?' + const mentionInComment1 = + 'I heard @jenny-rostock, practice it since 3 years now.' + const mentionInComment2 = + 'Did @peter-lustig told you?' await Promise.all([ asUser.create('Comment', { @@ -722,4 +726,4 @@ import Factory from './factories' process.exit(1) } })() -/* eslint-enable no-multi-spaces */ \ No newline at end of file +/* eslint-enable no-multi-spaces */