corrected tests and added null checks

This commit is contained in:
--list
2021-06-15 10:33:53 +02:00
parent bd6d0c6130
commit 6a0da1a423
8 changed files with 27 additions and 13 deletions
@@ -149,7 +149,7 @@ export default async (req, res) => {
.withTransaction(manager)
.retrieve(id)
const evaluatedNoNotification = value.no_notification !== undefined ? value.no_notification : order.no_notification
const evaluatedNoNotification = value.no_notification !== undefined && value.no_notification !== null ? value.no_notification : order.no_notification
returnObj.no_notification = evaluatedNoNotification
const createdReturn = await returnService