mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Auth middleware polish
This commit is contained in:
parent
81db237b48
commit
5f0b17a0db
5 changed files with 68 additions and 29 deletions
|
@ -16,6 +16,7 @@ module.exports = {
|
|||
|
||||
const Sqlite = require('better-sqlite3')
|
||||
const logger = require('../utils/logger.js')
|
||||
const utils = require('../utils/utils.js')
|
||||
|
||||
const debugLog = process.env.NS_SQL_DEBUG_LOG
|
||||
|
||||
|
@ -35,6 +36,7 @@ function GetSqlQuerry (conditions) {
|
|||
// -------------------------------------------------------------------------
|
||||
|
||||
function GetDB (path) {
|
||||
utils.CreatePath(path)
|
||||
return new Sqlite(path)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue