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: [],