Update healcheck_controller.ts

This commit is contained in:
nguyentrungthat 2026-04-21 09:45:48 +07:00
parent 1de8ab75a0
commit 4740458dd4
1 changed files with 7 additions and 3 deletions

View File

@ -70,7 +70,7 @@ export default class HealCheckController {
{
name: 'wiki',
status: resWiki.status < 400 ? true : false,
message: resWiki.data?.message || 'Checking api wiki success',
message: resWiki.status < 400 ? 'Checking api wiki success' : 'Checking api wiki fail',
},
{
...dataCheckNote,
@ -89,12 +89,16 @@ export default class HealCheckController {
{
name: 'wiki',
status: error?.response?.config?.url?.includes(linkWiki) ? false : true,
message: error?.message || 'Checking api wiki fail',
message: error?.response?.config?.url?.includes(linkWiki)
? 'Checking api wiki fail'
: 'Checking api wiki success',
},
{
name: 'update-note-sn',
status: error?.response?.config?.url?.includes(remoteUrl) ? false : true,
message: error?.message || 'Checking api update note SN fail',
message: error?.response?.config?.url?.includes(remoteUrl)
? 'Checking api update note SN fail'
: 'Checking api update note SN success',
},
],
}