From ad1afc10c7ef4fdd707f1dadbab5561adbee624e Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 12 Sep 2023 20:48:34 +0100 Subject: [PATCH] staffldb should be wrapped in ApiResponse before sending to client Signed-off-by: Fred Boniface --- src/services/ldb.services.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/services/ldb.services.js b/src/services/ldb.services.js index 79d6f0e..37c0291 100644 --- a/src/services/ldb.services.js +++ b/src/services/ldb.services.js @@ -78,7 +78,11 @@ async function arrDepBoardStaff(CRS) { const _staffLdb = staffStationTransform(result); console.log("Transformation Test Successful"); console.log(JSON.stringify(_staffLdb)); - return _staffLdb; + return { + obStatus: 200, + obMsg: "success", + data: _staffLdb, + }; } catch (err) { console.log("Transformation Test Failed: " + err); }