mirror of
https://github.com/zoriya/flood.git
synced 2025-12-06 07:16:18 +00:00
flood: rearrange, remove misc files and reformat
This commit is contained in:
@@ -86,7 +86,13 @@ class NotificationService extends BaseService<NotificationServiceEvents> {
|
||||
|
||||
getNotifications(
|
||||
query: NotificationFetchOptions,
|
||||
callback: (data: {notifications: Notification[][]; count: NotificationCount} | null, err?: Error) => void,
|
||||
callback: (
|
||||
data: {
|
||||
notifications: Notification[][];
|
||||
count: NotificationCount;
|
||||
} | null,
|
||||
err?: Error,
|
||||
) => void,
|
||||
) {
|
||||
const sortedNotifications = this.db.find({}).sort({ts: -1});
|
||||
const queryCallback = (err: Error | null, notifications: Notification[][]) => {
|
||||
|
||||
Reference in New Issue
Block a user