mirror of
https://github.com/arjunkomath/openclaw-railway-template.git
synced 2026-08-14 00:48:11 +00:00
Clean up
This commit is contained in:
+2
-2
@@ -181,7 +181,7 @@ function sleep(ms) {
|
||||
async function waitForGatewayReady(opts = {}) {
|
||||
const timeoutMs = opts.timeoutMs ?? 60_000;
|
||||
const start = Date.now();
|
||||
const endpoints = ["/openclaw", "/openclaw", "/", "/health"];
|
||||
const endpoints = ["/openclaw", "/", "/health"];
|
||||
|
||||
while (Date.now() - start < timeoutMs) {
|
||||
for (const endpoint of endpoints) {
|
||||
@@ -818,7 +818,7 @@ const VALID_AUTH_CHOICES = [
|
||||
];
|
||||
|
||||
function validatePayload(payload) {
|
||||
if (payload.authChoice && !VALID_AUTH_CHOICES.includes(payload.authChoice)) {
|
||||
if (payload.authChoice && !VALID_AUTH_CHOICES.includes(payload.authChoice)) {
|
||||
return `Invalid authChoice: ${payload.authChoice}`;
|
||||
}
|
||||
const stringFields = [
|
||||
|
||||
Reference in New Issue
Block a user