MCPcopy Create free account
hub / github.com/Forward-Future/loopy / adminError

Function adminError

loop-library/worker/src/loop-routes.js:409–420  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

407 throw new LoopValidationError(
408 "expectedRevision must be the non-negative revision returned by the current-loop endpoint.",
409 );
410 }
411
412 if (loop.slug !== slug) {
413 throw new LoopValidationError("The URL slug must match loop.slug.");
414 }
415
416 return catalogFetch(env, `/loops/${slug}`, {
417 method: "PUT",
418 body: JSON.stringify({
419 loop,
420 status,
421 actor: readActor(request),
422 expectedRevision,
423 action:

Callers 1

handleAdminRequestFunction · 0.85

Calls 1

jsonResponseFunction · 0.70

Tested by

no test coverage detected