From d398f53a03980553d1fbb1bd4592e20518da1ac6 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 21 Feb 2025 18:29:41 +0900 Subject: [PATCH] Update SystemAccountService.ts --- packages/backend/src/core/SystemAccountService.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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);