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:
@ -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');
|
||||
|
||||
@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user