From 6bb9105cf905e78913047d0bd5cdf287529d402d Mon Sep 17 00:00:00 2001 From: gitadmin Date: Mon, 16 Oct 2023 09:25:16 +0000 Subject: [PATCH] Update 'src/controllers/tanksController.js' --- src/controllers/tanksController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 26841904..88fb50f6 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -1346,7 +1346,7 @@ exports.totalwaterLevelSum = async (request, reply) => { } ]); - const result = waterlevelSum[0]?.totalWaterlevel ?? 0; + const result = waterlevelSum[0]?totalWaterlevel : 0 reply.send({ waterlevelSum: result }); }