From ba6f8e24d69d95fcadae28fc0052f384e96fa343 Mon Sep 17 00:00:00 2001 From: tar_bin Date: Sat, 21 Dec 2024 07:31:05 +0900 Subject: [PATCH] =?UTF-8?q?tsc=E3=81=AE=E3=83=81=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=82=AF=E3=82=A8=E3=83=A9=E3=83=BC=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/drive/files/create.ts | 2 +- .../src/server/api/endpoints/drive/files/upload-from-url.ts | 2 +- packages/backend/src/server/api/endpoints/i.ts | 2 +- packages/backend/src/server/api/endpoints/users/show.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/drive/files/create.ts b/packages/backend/src/server/api/endpoints/drive/files/create.ts index 3276d99f5bb9..d581da112e38 100644 --- a/packages/backend/src/server/api/endpoints/drive/files/create.ts +++ b/packages/backend/src/server/api/endpoints/drive/files/create.ts @@ -104,7 +104,7 @@ export default class extends Endpoint { // eslint- private loggerService: LoggerService, private driveService: DriveService, ) { - super(meta, paramDef, async (ps, me, _, file, cleanup, ip, headers) => { + super(meta, paramDef, async (ps, me, _, reply, file, cleanup, ip, headers) => { const logger = this.loggerService.getLogger('api:drive:files:create'); if (!file) { diff --git a/packages/backend/src/server/api/endpoints/drive/files/upload-from-url.ts b/packages/backend/src/server/api/endpoints/drive/files/upload-from-url.ts index 46475b452d08..6577f44d78d0 100644 --- a/packages/backend/src/server/api/endpoints/drive/files/upload-from-url.ts +++ b/packages/backend/src/server/api/endpoints/drive/files/upload-from-url.ts @@ -69,7 +69,7 @@ export default class extends Endpoint { // eslint- private driveFileEntityService: DriveFileEntityService, private globalEventService: GlobalEventService, ) { - super(meta, paramDef, async (ps, me, _token, _file, _cleanup, ip, headers) => { + super(meta, paramDef, async (ps, me, _token, reply, _file, _cleanup, ip, headers) => { const logger = this.loggerService.getLogger('api:drive:files:upload-from-url'); const hash = createHash('sha256').update(`${ps.folderId}:${ps.url}:${ps.isSensitive}`).digest('base64'); logger.setContext({ userId: me.id, hash, ip, headers }); diff --git a/packages/backend/src/server/api/endpoints/i.ts b/packages/backend/src/server/api/endpoints/i.ts index 4d6c60bad195..5c4c97b29698 100644 --- a/packages/backend/src/server/api/endpoints/i.ts +++ b/packages/backend/src/server/api/endpoints/i.ts @@ -49,7 +49,7 @@ export default class extends Endpoint { // eslint- private loggerService: LoggerService, private userEntityService: UserEntityService, ) { - super(meta, paramDef, async (ps, user, token, _file, _cleanup, ip, headers) => { + super(meta, paramDef, async (ps, user, token, reply, _file, _cleanup, ip, headers) => { const isSecure = token == null; const logger = this.loggerService.getLogger('api:account:i'); diff --git a/packages/backend/src/server/api/endpoints/users/show.ts b/packages/backend/src/server/api/endpoints/users/show.ts index 2bb939518a37..5b91bfc978d6 100644 --- a/packages/backend/src/server/api/endpoints/users/show.ts +++ b/packages/backend/src/server/api/endpoints/users/show.ts @@ -110,7 +110,7 @@ export default class extends Endpoint { // eslint- private perUserPvChart: PerUserPvChart, private apiLoggerService: ApiLoggerService, ) { - super(meta, paramDef, async (ps, me, _1, _2, _3, ip) => { + super(meta, paramDef, async (ps, me, _1, reply, _2, _3, ip) => { let user; const isModerator = await this.roleService.isModerator(me);