From b89af206d536f9b913c7a5265b5dd9d747b4e0fc Mon Sep 17 00:00:00 2001 From: Henry Fontanier Date: Tue, 5 Nov 2024 21:33:12 +0100 Subject: [PATCH] fix: tables rows upsert request parsing is broken (#8459) Co-authored-by: Henry Fontanier --- .../[spaceId]/data_sources/[dsId]/tables/[tId]/rows/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/[tId]/rows/index.ts b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/[tId]/rows/index.ts index 0dacf16fad17..0d3ff89fe73c 100644 --- a/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/[tId]/rows/index.ts +++ b/front/pages/api/v1/w/[wId]/spaces/[spaceId]/data_sources/[dsId]/tables/[tId]/rows/index.ts @@ -250,7 +250,7 @@ async function handler( return res.status(200).json({ rows: rowsList, offset, limit, total }); case "POST": - const r = await UpsertTableRowsRequestSchema.safeParse(req.query); + const r = await UpsertTableRowsRequestSchema.safeParse(req.body); if (r.error) { return apiError(req, res, {