Openstatus www.openstatus.dev
6
fork

Configure Feed

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

fix: Get all Page endpoint to return array as per Schema (#741)

authored by

Nabhag Motivaras and committed by
GitHub
9ec7bcec a8fafea3

+1 -3
-1
apps/server/src/v1/page.test.ts
··· 1 1 import { expect, test } from "bun:test"; 2 2 3 3 import { api } from "."; 4 - import { iso8601Regex } from "./test-utils"; 5 4 6 5 test.only("Create a page", async () => { 7 6 const data = {
+1 -2
apps/server/src/v1/page.ts
··· 338 338 const result = await db 339 339 .select() 340 340 .from(page) 341 - .where(and(eq(page.workspaceId, workspaceId))) 342 - .get(); 341 + .where(and(eq(page.workspaceId, workspaceId))); 343 342 344 343 if (!result) return c.json({ code: 404, message: "Not Found" }, 404); 345 344 const data = z.array(PageSchema).parse(result);