Modules now return a function which creates app-s, qmining module auth handle

This commit is contained in:
MrFry 2020-04-08 12:11:48 +02:00
parent b5f9ede2cf
commit a03f56028a
12 changed files with 1046 additions and 990 deletions

View file

@ -216,6 +216,9 @@ function CloseDB (db) {
// -------------------------------------------------------------------------
function PrepareStatement (db, s) {
if (!db) {
throw new Error('DB is undefined in prepare statement! DB action called with undefined db')
}
DebugLog(s)
return db.prepare(s)
}