diff --git a/packages/ditto/storages.ts b/packages/ditto/storages.ts index 7b77a037..d5d0f029 100644 --- a/packages/ditto/storages.ts +++ b/packages/ditto/storages.ts @@ -5,7 +5,6 @@ import { logi } from '@soapbox/logi'; import { Conf } from '@/config.ts'; import { wsUrlSchema } from '@/schema.ts'; -import { AdminStore } from '@/storages/AdminStore.ts'; import { DittoPgStore } from '@/storages/DittoPgStore.ts'; import { getRelays } from '@/utils/outbox.ts'; import { seedZapSplits } from '@/utils/zap-split.ts'; @@ -13,7 +12,6 @@ import { seedZapSplits } from '@/utils/zap-split.ts'; export class Storages { private static _db: Promise | undefined; private static _database: Promise | undefined; - private static _admin: Promise | undefined; private static _client: Promise> | undefined; public static async database(): Promise { @@ -53,14 +51,6 @@ export class Storages { return this._db; } - /** Admin user storage. */ - public static async admin(): Promise { - if (!this._admin) { - this._admin = Promise.resolve(new AdminStore(await this.db())); - } - return this._admin; - } - /** Relay pool storage. */ public static async client(): Promise> { if (!this._client) {