(error)
| 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: |
no test coverage detected