fixing enrichment of relationships in patch call
This commit is contained in:
parent
f62d76c664
commit
ce984348a0
|
@ -83,7 +83,11 @@ exports.patch = async ctx => {
|
||||||
const isUserTable = tableId === InternalTables.USER_METADATA
|
const isUserTable = tableId === InternalTables.USER_METADATA
|
||||||
let oldRow
|
let oldRow
|
||||||
try {
|
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) {
|
} catch (err) {
|
||||||
if (isUserTable) {
|
if (isUserTable) {
|
||||||
// don't include the rev, it'll be the global rev
|
// don't include the rev, it'll be the global rev
|
||||||
|
|
Loading…
Reference in New Issue