fix: wrong notification query condition
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 11s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 11s
This commit is contained in:
parent
1add3f3ba0
commit
3a437d78d4
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export class NotificationController extends Controller {
|
||||||
],
|
],
|
||||||
NOT: {
|
NOT: {
|
||||||
readByUser: { some: { id: req.user.sub } },
|
readByUser: { some: { id: req.user.sub } },
|
||||||
createdAt: dayjs().subtract(7, "days").toDate(),
|
createdAt: { lte: dayjs().subtract(7, "days").toDate() },
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const [result, total] = await prisma.$transaction([
|
const [result, total] = await prisma.$transaction([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue