Prevent double fetching on patch
This commit is contained in:
parent
80e979faa6
commit
7db92638de
|
@ -72,12 +72,10 @@ export async function patch(ctx: UserCtx<PatchRowRequest, PatchRowResponse>) {
|
|||
id: breakRowIdField(_id),
|
||||
row: dataToUpdate,
|
||||
})
|
||||
const row = await sdk.rows.external.getRow(tableId, _id, {
|
||||
relationships: true,
|
||||
})
|
||||
const row = await outputProcessing(table, response.row)
|
||||
return {
|
||||
...response,
|
||||
row: await outputProcessing(table, row),
|
||||
row,
|
||||
table,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue