Books Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2021-01-04 10:34:43 +01:00
1 parent c6212aac2b
commit 2ba163118e
3 files changed
+25 -1

No files matched your search

+2 -1
View File
@@ -1145,7 +1145,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
folder = 'Docs-Topics'
break
}
case 'DocsBooksSchema': {
case 'DocsBookSchema': {
folder = 'Docs-Books'
break
}
@@ -1162,6 +1162,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
let schema = JSON.stringify(schemaArray)
respondWithContent(schema, httpResponse)
} catch (err) {
console.log('Could not send Schema:' ,filePath, schemaType)
console.log(err.stack)
respondWithContent("[]", httpResponse)
}