1
0
Fork 0
mirror of synced 2024-10-05 04:25:21 +13:00

Remove needless table copy.

This commit is contained in:
Sam Rose 2024-09-26 15:40:25 +01:00
parent 7c6c03c80b
commit 25a2e02a90
No known key found for this signature in database

View file

@ -53,11 +53,8 @@ export async function patch(ctx: UserCtx<PatchRowRequest, PatchRowResponse>) {
combinedRow[key] = inputs[key] combinedRow[key] = inputs[key]
} }
// need to copy the table so it can be differenced on way out
const tableClone = cloneDeep(table)
// this returns the table and row incase they have been updated // this returns the table and row incase they have been updated
let row = await inputProcessing(ctx.user?._id, tableClone, combinedRow) let row = await inputProcessing(ctx.user?._id, source, combinedRow)
const validateResult = await sdk.rows.utils.validate({ const validateResult = await sdk.rows.utils.validate({
row, row,
source, source,