INNER CODE UNIT · TypeScript

body

stablyai/orca · cloud/apps/relay/src/app.ts:827

    const body = AdminCellStateSchema.safeParse(await context.req.json().catch(() => null))
    if (!body.success) return context.json({ error: 'invalid_request' }, 400)
    try {
      await operations.assignments.setCellAdmissionState(
        body.data.cellId,
        'state' in body.data
          ? body.data.state
          : body.data.enabled
          ? 'general'
          : 'existing-only'
      )
      return context.json({ ok: true })
    } catch (error) {
      return context.json({ error: operationError(error) }, 409)
    }
  })
  app.post('/v1/admin/cell-fence-adopt-legacy', async (context) => {
    const bearer = readBearer(context.req.header('authorization'))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…