MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / hasIssue

Function hasIssue

src/app/api/cron/route.ts:218–224  ·  view source on GitHub ↗
(state: JsonRecord | null)

Source from the content-addressed store, hash-verified

216}
217
218function hasIssue(state: JsonRecord | null): boolean {
219 if (!state) return false;
220 const lastRunStatus = readString(state.lastRunStatus);
221 const lastError = readString(state.lastError);
222 const consecutiveErrors = readNumber(state.consecutiveErrors) || 0;
223 return lastRunStatus === "error" || consecutiveErrors > 0 || Boolean(lastError?.trim());
224}
225
226async function readCronUpdateRequest(
227 request: NextRequest

Callers 1

GETFunction · 0.85

Calls 2

readStringFunction · 0.85
readNumberFunction · 0.85

Tested by

no test coverage detected