test fix
This commit is contained in:
parent
d32df44ae0
commit
52358e93ad
|
@ -45,7 +45,7 @@ exports.save = async function(ctx) {
|
|||
|
||||
// create links in other tables
|
||||
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({
|
||||
include_docs: true,
|
||||
keys: record[key],
|
||||
|
|
Loading…
Reference in New Issue