mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 22:39:33 +09:00
fix: お知らせの未読通知が消えない不具合を修正
This commit is contained in:
parent
f85b80f376
commit
9fb3966b53
@ -51,7 +51,6 @@ export class AnnouncementService {
|
||||
'read."announcementId" = announcement.id AND read."userId" = :userId',
|
||||
{ userId: user.id },
|
||||
);
|
||||
q.andWhere('read.id IS NULL');
|
||||
|
||||
q
|
||||
.where('announcement.isActive = true')
|
||||
@ -62,7 +61,8 @@ export class AnnouncementService {
|
||||
.andWhere(new Brackets(qb => {
|
||||
qb.orWhere('announcement.forExistingUsers = false');
|
||||
qb.orWhere('announcement.id > :userId', { userId: user.id });
|
||||
}));
|
||||
}))
|
||||
.andWhere('read.id IS NULL');
|
||||
|
||||
q.orderBy({
|
||||
'announcement."displayOrder"': 'DESC',
|
||||
|
Loading…
Reference in New Issue
Block a user