Skip to content

Commit

Permalink
Sanketika-Obsrv/issue-tracker#163: corrected logger message
Browse files Browse the repository at this point in the history
  • Loading branch information
yashashkumar committed May 9, 2024
1 parent e7a2252 commit 81fb174
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const updateQueryTemplate = async (req: Request, res: Response) => {

const { validTemplate } = await validateTemplate(requestBody);
if (!validTemplate) {
logger.error({ apiId, msgid, resmsgid, requestBody: req?.body, message: `Invalid template provided, A template should consist of variables ${requiredVariables} and type of json,sql`, code: "-QUERY_TEMPLATE_INVALID_INPUT" })
logger.error({ apiId, msgid, resmsgid, requestBody: req?.body, message: `Invalid template provided, A template should consist of variables ${requiredVariables} and type of json,sql`, code: "QUERY_TEMPLATE_INVALID_INPUT" })
return ResponseHandler.errorResponse({ statusCode: 400, message: `Invalid template provided, A template should consist of variables ${requiredVariables} and type of json,sql`, errCode: "BAD_REQUEST", code: "QUERY_TEMPLATE_INVALID_INPUT" }, req, res)
}

Expand Down

0 comments on commit 81fb174

Please sign in to comment.