Using array de-structuring as per review.
This commit is contained in:
parent
17a4b058b5
commit
93281e2adc
|
@ -256,10 +256,8 @@ exports.fetchEnrichedRecord = async function(ctx) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// // need model to work out where links go in record
|
// need model to work out where links go in record
|
||||||
const modelAndRecord = await Promise.all([db.get(modelId), db.get(recordId)])
|
const [model, record] = await Promise.all([db.get(modelId), db.get(recordId)])
|
||||||
const model = modelAndRecord[0]
|
|
||||||
const record = modelAndRecord[1]
|
|
||||||
// get the link docs
|
// get the link docs
|
||||||
const linkVals = await linkRecords.getLinkDocuments({
|
const linkVals = await linkRecords.getLinkDocuments({
|
||||||
instanceId,
|
instanceId,
|
||||||
|
|
Loading…
Reference in New Issue