flood: rearrange, remove misc files and reformat

This commit is contained in:
Jesse Chan
2020-11-15 22:54:36 +08:00
parent ba23f0166e
commit 1a878d5423
86 changed files with 700 additions and 917 deletions

View File

@@ -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[][]) => {