diff --git a/packages/backend/src/core/SystemAccountService.ts b/packages/backend/src/core/SystemAccountService.ts index 31617f0564..289fd05e8e 100644 --- a/packages/backend/src/core/SystemAccountService.ts +++ b/packages/backend/src/core/SystemAccountService.ts @@ -41,6 +41,13 @@ export class SystemAccountService { this.cache = new MemoryKVCache(1000 * 60 * 10); // 10m } + @bindThis + public async list(): Promise { + const accounts = await this.systemAccountsRepository.findBy({}); + + return accounts; + } + @bindThis public async fetch(type: typeof SYSTEM_ACCOUNT_TYPES[number]): Promise { const cached = this.cache.get(type);