Remove expired rejoin sessions

This commit is contained in:
2026-07-10 12:27:32 -07:00
parent 2de4648288
commit 8470da4aa9
4 changed files with 40 additions and 5 deletions

View File

@@ -17,7 +17,9 @@ export async function apiRequest(endpoint, method = 'GET', data = null) {
if (errBody.error) msg = errBody.error;
else if (errBody.detail) msg = errBody.detail;
} catch(e) {}
throw new Error(msg);
const error = new Error(msg);
error.status = res.status;
throw error;
}
return res.json();
}