Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add time to slug uniqueness (#420)

authored by

Maximilian Kaske and committed by
GitHub
66e1b6ae 8ba290c4

+5 -1
+5 -1
packages/api/src/router/page.ts
··· 339 339 .input(z.object({ slug: z.string().toLowerCase() })) 340 340 .query(async (opts) => { 341 341 // had filter on some words we want to keep for us 342 - if (["api", "app", "www", "docs", "checker"].includes(opts.input.slug)) { 342 + if ( 343 + ["api", "app", "www", "docs", "checker", "time"].includes( 344 + opts.input.slug, 345 + ) 346 + ) { 343 347 return false; 344 348 } 345 349 const result = await opts.ctx.db.query.page.findMany({