From 89a9cce665773fe62df8c4633e1bc0c1e18bcfc1 Mon Sep 17 00:00:00 2001 From: Siddharth Rawat Date: Mon, 20 Nov 2023 10:37:41 -0500 Subject: [PATCH] fix: store consumer data in specified schema Fixes issue #8 --- services/httpcheck.service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/httpcheck.service.js b/services/httpcheck.service.js index b48c496..12c1219 100644 --- a/services/httpcheck.service.js +++ b/services/httpcheck.service.js @@ -12,7 +12,7 @@ const create = async (params) => { response_status_code, check_interval_in_seconds, } = params - return HttpCheckModel.create({ + const save = await HttpCheckModel.create({ name, uri, is_paused, @@ -23,6 +23,7 @@ const create = async (params) => { response_status_code, check_interval_in_seconds, }) + return save } export default create