mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +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' },
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.status !== 200) {
|
||||
if (res.status !== 204) {
|
||||
throw new Error(`${res.status} ${res.statusText}`)
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user