diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-07-12 00:31:12 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-07-12 00:31:12 +0200 |
commit | 413501fde6bac909f31ad399781626caa16c8d04 (patch) | |
tree | 7514b0f551a7c41f618d58a50fa56972e6b06170 /core/raw | |
parent | e99ae80f7adc0f0e677381c3cc1549235d3877ab (diff) |
implement parser breaks
Diffstat (limited to 'core/raw')
-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; |