1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00
This commit is contained in:
Martin McKeaveney 2020-06-24 17:26:14 +01:00
parent e42c807ded
commit 5a7fa51907

View file

@ -45,7 +45,7 @@ exports.save = async function(ctx) {
// create links in other tables // create links in other tables
for (let key in record) { for (let key in record) {
if (model.schema[key].type === "link") { if (model.schema[key] && model.schema[key].type === "link") {
const linked = await db.allDocs({ const linked = await db.allDocs({
include_docs: true, include_docs: true,
keys: record[key], keys: record[key],