1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00

Merge pull request #4865 from Budibase/fix/patch-relationships

fixing enrichment of relationships in patch call
This commit is contained in:
Martin McKeaveney 2022-03-21 08:24:35 +00:00 committed by GitHub
commit 34984ab3a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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