Browse Source
Merge pull request #4865 from Budibase/fix/patch-relationships
fixing enrichment of relationships in patch call
pull/4972/head
Martin McKeaveney
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
packages/server/src/api/controllers/row/internal.js
|
|
|
@ -85,7 +85,11 @@ exports.patch = async ctx => { |
|
|
|
const isUserTable = tableId === InternalTables.USER_METADATA |
|
|
|
let oldRow |
|
|
|
try { |
|
|
|
oldRow = await db.get(inputs._id) |
|
|
|
let dbTable = await db.get(tableId) |
|
|
|
oldRow = await outputProcessing( |
|
|
|
dbTable, |
|
|
|
await findRow(ctx, tableId, inputs._id) |
|
|
|
) |
|
|
|
} catch (err) { |
|
|
|
if (isUserTable) { |
|
|
|
// don't include the rev, it'll be the global rev
|
|
|
|
|