🐛 rename okStatus to statusCodes

This commit is contained in:
ajnart
2023-01-19 22:28:11 +09:00
committed by Manuel
parent 1e046e8193
commit 41da97feaf
6 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ export const AppPing = ({ app }: AppPingProps) => {
queryKey: [`ping/${app.id}`],
queryFn: async () => {
const response = await fetch(`/api/modules/ping?url=${encodeURI(app.url)}`);
const isOk = app.network.okStatus.includes(response.status);
const isOk = app.network.statusCodes.includes(response.status);
return {
status: response.status,
state: isOk ? 'online' : 'down',