fix: error reading variable
This commit is contained in:
parent
ad4861b04c
commit
8c898c4faa
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ async function logMiddleware(req: Request, res: Response, next: NextFunction) {
|
|||
endpoint: req.url,
|
||||
responseCode: res.statusCode,
|
||||
responseDescription:
|
||||
data.devMessage !== undefined
|
||||
data?.devMessage !== undefined
|
||||
? data.devMessage
|
||||
: { 200: "success", 201: "created_success", 204: "no_content", 304: "success" }[
|
||||
res.statusCode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue