Change by Alex and Moriz review suggestions

This commit is contained in:
Wolfgang Huß 2022-05-16 13:09:46 +02:00
parent 6b9fbc920e
commit 095214c282
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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