* [ADD] Unit testing. Work in progress

* [MOD] Code refactoring
This commit is contained in:
nuxsmin
2018-07-21 19:52:36 +02:00
parent 796c27696e
commit 001d0b02bd
4 changed files with 497 additions and 8 deletions

View File

@@ -486,7 +486,7 @@ class NotificationRepository extends Repository implements RepositoryItemInterfa
sticky,
onlyAdmin
FROM Notification
WHERE (userId = ? OR userId IS NULL OR sticky = 1)
WHERE (userId = ? OR (userId IS NULL AND sticky = 1))
AND onlyAdmin = 0
ORDER BY `date` DESC ';