fix: discord health response code

This commit is contained in:
Ben Allfree 2024-11-22 03:09:45 +00:00
parent b28967db74
commit 05ae9b33f5
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'pockethost': patch
---
Fix: Discord health response code check

View File

@ -143,7 +143,7 @@ export const checkHealth = async () => {
headers: { 'content-type': 'application/json' },
})
.then((res) => {
if (res.status !== 200) {
if (res.status !== 204) {
throw new Error(`${res.status} ${res.statusText}`)
}
})