mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-24 14:35:49 +00:00
fix: discord health response code
This commit is contained in:
parent
b28967db74
commit
05ae9b33f5
5
.changeset/slimy-laws-tell.md
Normal file
5
.changeset/slimy-laws-tell.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'pockethost': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix: Discord health response code check
|
||||||
@ -143,7 +143,7 @@ export const checkHealth = async () => {
|
|||||||
headers: { 'content-type': 'application/json' },
|
headers: { 'content-type': 'application/json' },
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.status !== 200) {
|
if (res.status !== 204) {
|
||||||
throw new Error(`${res.status} ${res.statusText}`)
|
throw new Error(`${res.status} ${res.statusText}`)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user