From c10115397568550cfaf69eb5317a97e2f8e0f049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 5 May 2022 16:30:35 +0200 Subject: [PATCH] Fix quickly the account sum problem for the seeding of bob's transactions --- backend/src/seeds/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/seeds/index.ts b/backend/src/seeds/index.ts index f26000e06..e6bca3078 100644 --- a/backend/src/seeds/index.ts +++ b/backend/src/seeds/index.ts @@ -66,7 +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 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 } // create Transaction Links