From d72f29b2c3fc5934a2eb6dda568cd839c78fe810 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 23 Feb 2023 10:02:15 +0000 Subject: [PATCH] oops --- packages/backend/src/core/entities/NoteEntityService.ts | 2 +- packages/backend/src/server/api/endpoints/i/notifications.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index ec5a3dc9b5..2ffe5f1c21 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -43,7 +43,7 @@ export class NoteEntityService implements OnModuleInit { private pollsRepository: PollsRepository, @Inject(DI.pollVotesRepository) - private sRepository: PollVotesRepository, + private pollVotesRepository: PollVotesRepository, @Inject(DI.noteReactionsRepository) private noteReactionsRepository: NoteReactionsRepository, diff --git a/packages/backend/src/server/api/endpoints/i/notifications.ts b/packages/backend/src/server/api/endpoints/i/notifications.ts index beca565025..e3897d38bd 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications.ts @@ -43,10 +43,10 @@ export const paramDef = { markAsRead: { type: 'boolean', default: true }, // 後方互換のため、廃止された通知タイプも受け付ける includeTypes: { type: 'array', items: { - type: 'string', enum: [ ...notificationTypes, ...obsoleteNotificationTypes ], + type: 'string', enum: [...notificationTypes, ...obsoleteNotificationTypes], } }, excludeTypes: { type: 'array', items: { - type: 'string', enum: [ ...notificationTypes, ...obsoleteNotificationTypes ], + type: 'string', enum: [...notificationTypes, ...obsoleteNotificationTypes], } }, }, required: [],