Fix tests

This commit is contained in:
Adria Navarro 2024-06-07 11:30:35 +02:00
parent b22ea1b0f9
commit 20d1b81099
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ export async function patch(ctx: UserCtx<PatchRowRequest, PatchRowResponse>) {
})
// The id might have been changed, so the refetching would fail. Recalculating the id just in case
const updatedId = generateIdForRow({ _id, ...dataToUpdate }, table)
const updatedId = generateIdForRow(ctx.request.body, table)
const row = await sdk.rows.external.getRow(tableId, updatedId, {
relationships: true,
})