fix notification order

This commit is contained in:
Yurii
2026-04-06 15:48:53 +03:00
parent 032708f623
commit 5d2c4d5deb

View File

@@ -897,7 +897,7 @@ class RecordService
])
->where([Notification::ATTR_USER_ID => $user->getId()])
->order([])
->order($this->getMaxNumberExpr(), Order::DESC);
->order(Notification::ATTR_NUMBER, Order::DESC);
if ($notRead) {
$builder->where([Notification::ATTR_READ => false]);