Revert "🐛 rename okStatus to statusCodes"

This reverts commit 41da97feaf.
This commit is contained in:
Thomas Camlong authored and GitHub committed 2023-01-22 23:20:48 +09:00
1 parent 8209b70674
commit 9169fd1293
6 files changed
+6 -6

No files matched your search

@@ -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.statusCodes.includes(response.status);
const isOk = app.network.okStatus.includes(response.status);
return {
status: response.status,
state: isOk ? 'online' : 'down',