mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
chore: eslint max-len
This commit is contained in:
committed by
Julian Lam
parent
5c2f0f0557
commit
cc9d6fd08b
@@ -118,7 +118,11 @@ Notifications.create = async function (data) {
|
||||
}
|
||||
data.importance = data.importance || 5;
|
||||
const oldNotif = await db.getObject(`notifications:${data.nid}`);
|
||||
if (oldNotif && parseInt(oldNotif.pid, 10) === parseInt(data.pid, 10) && parseInt(oldNotif.importance, 10) > parseInt(data.importance, 10)) {
|
||||
if (
|
||||
oldNotif &&
|
||||
parseInt(oldNotif.pid, 10) === parseInt(data.pid, 10) &&
|
||||
parseInt(oldNotif.importance, 10) > parseInt(data.importance, 10)
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
const now = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user