Skip to content

Commit

Permalink
works without .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Jul 21, 2024
1 parent bcd80b9 commit d22b7fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions db.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import bsql3 from "better-sqlite3";
import bcrypt from "bcrypt";
import fs from "fs";
import * as util from "./util.js";
// import * as util from "./util.js";
import { v4 as newUUID } from "uuid";
import {
AdminRank,
Expand All @@ -11,11 +11,11 @@ import {
// for testing purposes...
const ANON_PASSWORD = "asdf";

util.loadEnv();
util.checkEnvReady([
"DB_USER",
"DB_PASS",
]);
// util.loadEnv();
// util.checkEnvReady([
// "DB_USER",
// "DB_PASS",
// ]);

fs.mkdirSync("/srv/sparklet/", { recursive: true });
const database = new bsql3("/srv/sparklet/sparklet.db");
Expand Down

0 comments on commit d22b7fb

Please sign in to comment.