Remove needless table copy.
This commit is contained in:
parent
7c6c03c80b
commit
25a2e02a90
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue