Skip to content

Commit

Permalink
fix: missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Mar 25, 2024
1 parent 52d472c commit 835ae77
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/backend/src/api/v1/runs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ingest from "./ingest"
import { fileExport } from "./export"
import { deserializeLogic } from "shared"
import { convertChecksToSQL } from "@/src/utils/checks"
import { checkAccess } from "@/src/utils/authorization"

const runs = new Router({
prefix: "/runs",
Expand Down Expand Up @@ -88,7 +89,7 @@ const formatRun = (run: any) => ({

runs.use("/ingest", ingest.routes())

runs.get("/", checkAccess("logs", "read"), async (ctx: Context) => {
runs.get("/", async (ctx: Context) => {
const { projectId } = ctx.state

const queryString = ctx.querystring
Expand Down Expand Up @@ -186,7 +187,7 @@ runs.get("/usage", checkAccess("logs", "read"), async (ctx) => {
ctx.body = runsUsage
})

runs.get("/:id/public", checkAccess("logs", "read"), async (ctx) => {
runs.get("/:id/public", async (ctx) => {
const { id } = ctx.params

const [row] = await sql`
Expand All @@ -212,7 +213,7 @@ runs.get("/:id/public", checkAccess("logs", "read"), async (ctx) => {
ctx.body = formatRun(row)
})

runs.get("/:id", checkAccess("logs", "read"), async (ctx) => {
runs.get("/:id", async (ctx) => {
const { id } = ctx.params

// Use orgId in case teammates shares URL to run and teammates is on another project.
Expand Down

0 comments on commit 835ae77

Please sign in to comment.