mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-19 02:56:23 +08:00
fix(server): correct notification pagination by using 'lt' instead of 'gt' for createdAt (#11430)
This commit is contained in:
@@ -209,7 +209,7 @@ export class NotificationModel extends BaseModel {
|
||||
where: {
|
||||
userId,
|
||||
...(options?.includeRead ? {} : { read: false }),
|
||||
...(options?.after ? { createdAt: { gt: options.after } } : {}),
|
||||
...(options?.after ? { createdAt: { lt: options.after } } : {}),
|
||||
},
|
||||
orderBy: { createdAt: 'desc' },
|
||||
skip: options?.offset,
|
||||
|
||||
Reference in New Issue
Block a user