From 095214c28269dfa85b359db5f66d9f56239da315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Mon, 16 May 2022 13:09:46 +0200 Subject: [PATCH] Change by Alex and Moriz review suggestions --- backend/src/seeds/creation/index.ts | 4 +--- backend/src/seeds/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/backend/src/seeds/creation/index.ts b/backend/src/seeds/creation/index.ts index 8c7b35a45..9c85a7229 100644 --- a/backend/src/seeds/creation/index.ts +++ b/backend/src/seeds/creation/index.ts @@ -112,13 +112,11 @@ const bobsSendings = [ }, { amount: 5.8, - memo: 'von Frau Rottenmeier', + memo: 'von Fräulein Rottenmeier', }, ] -let bobsSum = 0 const bobsTransactions: CreationInterface[] = [] bobsSendings.forEach((sending) => { - bobsSum = bobsSum + sending.amount bobsTransactions.push({ email: 'bob@baumeister.de', amount: sending.amount, diff --git a/backend/src/seeds/index.ts b/backend/src/seeds/index.ts index e6bca3078..21539e1ba 100644 --- a/backend/src/seeds/index.ts +++ b/backend/src/seeds/index.ts @@ -66,10 +66,10 @@ const run = async () => { // create GDD for (let i = 0; i < creations.length; i++) { - const now = new Date().getTime() // we have to wait a little! quick fix for account sum problem of bob@baumeister.de + const now = new Date().getTime() // we have to wait a little! quick fix for account sum problem of bob@baumeister.de, (see https://github.com/gradido/gradido/issues/1886) await creationFactory(seedClient, creations[i]) // eslint-disable-next-line no-empty - while (new Date().getTime() < now + 1000) {} // we have to wait a little! quick fix for account sum problem of bob@baumeister.de + while (new Date().getTime() < now + 1000) {} // we have to wait a little! quick fix for account sum problem of bob@baumeister.de, (see https://github.com/gradido/gradido/issues/1886) } // create Transaction Links