mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 01:24:58 +02:00
simplify installer and remove parsing from read config
This commit is contained in:
parent
9f38ad9b4d
commit
ead5df0a8c
9 changed files with 51 additions and 70 deletions
|
@ -5,7 +5,6 @@ import path from "path";
|
|||
import fs from "fs/promises";
|
||||
import { APP_PATH } from "@server/lib/consts";
|
||||
import { existsSync, mkdirSync } from "fs";
|
||||
import { readConfigFile } from "@server/lib/readConfigFile";
|
||||
|
||||
export const location = path.join(APP_PATH, "db", "db.sqlite");
|
||||
export const exists = await checkFileExists(location);
|
||||
|
@ -13,8 +12,6 @@ export const exists = await checkFileExists(location);
|
|||
bootstrapVolume();
|
||||
|
||||
function createDb() {
|
||||
const config = readConfigFile();
|
||||
|
||||
const sqlite = new Database(location);
|
||||
return DrizzleSqlite(sqlite, { schema });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue