mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 00:43:54 +00:00
refract: tidy up structure
- db in folder
This commit is contained in:
+1
-1
@@ -34,4 +34,4 @@ yarn.lock
|
||||
package.json
|
||||
package-lock.json
|
||||
db.json
|
||||
server/db backup.json
|
||||
db backup.json
|
||||
|
||||
+3
-1
@@ -3,8 +3,10 @@ import { config } from './config/config.js';
|
||||
|
||||
// init database
|
||||
import { Low, JSONFile } from 'lowdb';
|
||||
import { join } from 'path';
|
||||
|
||||
const adapter = new JSONFile(config.database.filename);
|
||||
const file = join('data/', config.database.filename);
|
||||
const adapter = new JSONFile(file);
|
||||
export const db = new Low(adapter);
|
||||
|
||||
// dependencies
|
||||
|
||||
Reference in New Issue
Block a user