disallow lint warnings on backend, fix warning

This commit is contained in:
Ulf Gebhardt 2022-02-23 00:41:25 +01:00
parent a896c9eb8c
commit a054c0ce26
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
"clean": "tsc --build --clean",
"start": "node build/src/index.js",
"dev": "nodemon -w src --ext ts --exec ts-node src/index.ts",
"lint": "eslint . --ext .js,.ts",
"lint": "eslint --max-warnings=0 --ext .js,.ts .",
"test": "TZ=UTC NODE_ENV=development jest --runInBand --coverage --forceExit --detectOpenHandles"
},
"dependencies": {

View File

@ -53,6 +53,7 @@ async function calculateAndAddDecayTransactions(
transactionIndiced[transaction.id] = transaction
involvedUserIds.push(transaction.userId)
if (transaction.transactionTypeId === TransactionTypeId.SEND) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
involvedUserIds.push(transaction.sendReceiverUserId!) // TODO ensure not null properly
}
})