Skip to content

Commit

Permalink
Remove debug cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
toresbe committed Jul 27, 2023
1 parent 7affc49 commit 316bed1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/modules/scheduling/middleware/sendJukeboxableVideos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ import { serializeVideo } from "../../video/helpers/serializeVideo"
import { getJukeboxableVideos } from "../helpers/getJukeboxableVideos"

export const sendJukeboxableVideos = (): Middleware => async (context, next) => {
//context.body = (await getJukeboxableVideos()).map((v) => serializeVideo(v))

context.body = `<html><pre>${JSON.stringify(
await getJukeboxableVideos(),
null,
2,
)}</pre></html>`
context.status = 200
context.body = await getJukeboxableVideos()

return next()
}

0 comments on commit 316bed1

Please sign in to comment.