mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +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.json
|
||||||
package-lock.json
|
package-lock.json
|
||||||
db.json
|
db.json
|
||||||
server/db backup.json
|
db backup.json
|
||||||
|
|||||||
+3
-1
@@ -3,8 +3,10 @@ import { config } from './config/config.js';
|
|||||||
|
|
||||||
// init database
|
// init database
|
||||||
import { Low, JSONFile } from 'lowdb';
|
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);
|
export const db = new Low(adapter);
|
||||||
|
|
||||||
// dependencies
|
// dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user