π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Update DocumentsManager.ts
Raphael Veauvillea6c5587c4cd9
diff --git a/backend/classes/DocumentsManager.ts b/backend/classes/DocumentsManager.tsindex a98a4eb7..f8fe0472 100644--- a/backend/classes/DocumentsManager.ts+++ b/backend/classes/DocumentsManager.ts@@ -13,7 +13,10 @@ export default class DocumentsManager extends Base {this.app.db.query<DocumentDB[]>(`SELECT * FROM documents ${all == 'true' ? '' : 'WHERE `accessibility` = 1'} ORDER BY \`name\``,(err, result) => {- if (err) return reject('Internal database error.');+ if (err) {+ console.log(err);+ return reject('Internal database error.');+ }resolve(result);},);