From 413501fde6bac909f31ad399781626caa16c8d04 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 12 Jul 2023 00:31:12 +0200 Subject: implement parser breaks --- core/raw/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/raw') 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; 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; -- cgit v1.2.3