From 67d236c201d45d1aeb5a2291499de2ee97212ce0 Mon Sep 17 00:00:00 2001 From: riku6460 <17585784+riku6460@users.noreply.github.com> Date: Fri, 8 Mar 2024 02:04:35 +0900 Subject: [PATCH] =?UTF-8?q?/=5Finfo=5Fcard=5F=20=E3=81=8B=E3=82=89?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E3=81=97=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=AF=E3=82=A8=E3=83=AA=E3=82=92=E5=89=8A=E9=99=A4=20(#516)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/web/ClientServerService.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index c39eb2fb47..6882aa108c 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -776,17 +776,10 @@ export class ClientServerService { reply.removeHeader('X-Frame-Options'); - const [originalUsersCount, originalNotesCount] = await Promise.all([ - this.usersRepository.count({ where: { host: IsNull() }, cache: 1000 * 60 * 60 * 6 }), // 6 hours - this.notesRepository.count({ where: { userHost: IsNull() }, cache: 1000 * 60 * 60 * 6 }), // 6 hours - ]); - return await reply.view('info-card', { version: this.config.version, host: this.config.host, meta: meta, - originalUsersCount, - originalNotesCount, }); });