diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/raw/api.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/raw/api.ts b/core/raw/api.ts index 6046a26..76cdb5b 100644 --- a/core/raw/api.ts +++ b/core/raw/api.ts @@ -1,19 +1,22 @@ import Core, { CoreExport, CoreImport, CoreSearch, CoreUser } from "../api.ts"; import YomikunError from "../../util/error.ts"; import Search from "../../search/search.ts"; +import DB from "../../db/db.ts"; /** @summary internal Core (DO NOT USE DIRECTLY) */ export default class RawCore implements Core { public ready: Promise<void>; private _search: Search; + private _db: DB; constructor() { if (this.constructor === RawCore) { throw new YomikunError("RawCore instantiated! Use DirectCoreClient instead!"); } - this._search = new Search(); + this._db = new DB(); + this._search = new Search(this._db); this.ready = new Promise(async resolve => { await this._search.ready; |