1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-08 05:17:54 -05:00

fix imports on db files

This commit is contained in:
Ean Milligan
2025-05-03 08:02:07 -04:00
parent 03a2acc386
commit 9582d91ac1
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
// This file will create all tables for the artificer schema
// DATA WILL BE LOST IF DB ALREADY EXISTS, RUN AT OWN RISK
import config from '~config';
import dbClient from 'db/client.ts';
console.log('Attempting to create DB');

View File

@ -1,7 +1,7 @@
// This file will populate the tables with default values
import config from '~config';
import config from '..~config';
import dbClient from 'src/db/client.ts';
import dbClient from 'db/client.ts';
console.log('Attempting to populate DB Admin API key');
await dbClient.execute('INSERT INTO all_keys(userid,apiKey) values(?,?)', [config.api.admin, config.api.adminKey]).catch((e) => {