diff --git a/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts b/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts index 4b0b9d0884..444734070f 100644 --- a/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts +++ b/packages/backend/src/server/api/endpoints/i/notifications-grouped.ts @@ -106,8 +106,8 @@ export default class extends Endpoint { // eslint- // grouping const groupedNotifications : MiGroupedNotification[] = []; // keep track of where reaction / renote notifications are, by note id - const reactionIdxByNoteId = new Map(); - const renoteIdxByNoteId = new Map(); + const reactionIdxByNoteId = new Map(); + const renoteIdxByNoteId = new Map(); // group notifications by type+note; notice that we don't try to // split groups if they span a long stretch of time, because @@ -130,7 +130,7 @@ export default class extends Endpoint { // eslint- continue; } - let prevReaction = groupedNotifications[reactionIdx]; + let prevReaction = groupedNotifications[reactionIdx] as FilterUnionByProperty | FilterUnionByProperty; // if the previous reaction is not a group, make it into one if (prevReaction.type !== 'reaction:grouped') { prevReaction = groupedNotifications[reactionIdx] = { @@ -162,7 +162,7 @@ export default class extends Endpoint { // eslint- continue; } - let prevRenote = groupedNotifications[renoteIdx]; + let prevRenote = groupedNotifications[renoteIdx] as FilterUnionByProperty | FilterUnionByProperty; // if the previous renote is not a group, make it into one if (prevRenote.type !== 'renote:grouped') { prevRenote = groupedNotifications[renoteIdx] = {