From 6543a68b85b235af44f2d8457d7379498950288b Mon Sep 17 00:00:00 2001 From: Maksim Sitnikov Date: Mon, 22 Jan 2024 19:58:59 +0300 Subject: [PATCH] Fix platform/api db imports (#62) --- api/db.ts | 2 +- api/init-db.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/db.ts b/api/db.ts index 7815e7ae..f1a1fc06 100644 --- a/api/db.ts +++ b/api/db.ts @@ -1,4 +1,4 @@ -export {getId, Model} from '../src/db'; +export {db, getId, Model} from '../src/db'; export {default as LegacyEntry} from '../src/db/models/entry'; export {default as LegacyRevision} from '../src/db/models/revision'; diff --git a/api/init-db.ts b/api/init-db.ts index 88bd89b9..933486a4 100644 --- a/api/init-db.ts +++ b/api/init-db.ts @@ -1 +1 @@ -export {initDB} from '../src/db/init-db'; +export {getKnexOptions, initDB} from '../src/db/init-db';