From 0a686bf1b5565da716e4077e896b2c4483d2cf8b Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 20 Feb 2024 15:37:52 +0100 Subject: [PATCH] clean --- models/Odmdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Odmdb.js b/models/Odmdb.js index b0409bc..6f3aa21 100644 --- a/models/Odmdb.js +++ b/models/Odmdb.js @@ -253,7 +253,7 @@ Odmdb.Schema = (objectPathname, validschema, lg="en") => { if (!fs.existsSync(optionsfile)){ res.status = 404; res.msg = "missingref"; - res.data.missingref = res.data.schema.properties[p]["$ref"]; + res.data.missingref = res.data.schema.properties[p].options["$ref"]; return res; }else{ if (!res.data.schema.apxref) {res.data.schema.apxref=[]}