mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04: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
|
// This file will create all tables for the artificer schema
|
||||||
// DATA WILL BE LOST IF DB ALREADY EXISTS, RUN AT OWN RISK
|
// DATA WILL BE LOST IF DB ALREADY EXISTS, RUN AT OWN RISK
|
||||||
|
|
||||||
import config from '~config';
|
import config from '~config';
|
||||||
|
|
||||||
import dbClient from 'db/client.ts';
|
import dbClient from 'db/client.ts';
|
||||||
|
|
||||||
console.log('Attempting to create DB');
|
console.log('Attempting to create DB');
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// This file will populate the tables with default values
|
// This file will populate the tables with default values
|
||||||
|
import config from '~config';
|
||||||
|
|
||||||
import config from '..~config';
|
import dbClient from 'db/client.ts';
|
||||||
import dbClient from 'src/db/client.ts';
|
|
||||||
|
|
||||||
console.log('Attempting to populate DB Admin API key');
|
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) => {
|
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