mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
Fixed linting issues
This commit is contained in:
parent
f4cf906127
commit
1d2482f8bc
2 changed files with 2 additions and 2 deletions
|
|
@ -786,7 +786,7 @@ describe('cron', () => {
|
||||||
cron({user, tasksByType, daysMissed, analytics});
|
cron({user, tasksByType, daysMissed, analytics});
|
||||||
|
|
||||||
let filteredNotifications = filter(user.notifications, function filterNotifications (notification) {
|
let filteredNotifications = filter(user.notifications, function filterNotifications (notification) {
|
||||||
return notification.type === 'LOGIN_INCENTIVE';
|
return notification.type === 'LOGIN_INCENTIVE';
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(filteredNotifications.length).to.equal(1);
|
expect(filteredNotifications.length).to.equal(1);
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ function trackCronAnalytics (analytics, user, _progress, options) {
|
||||||
function awardLoginIncentives (user) {
|
function awardLoginIncentives (user) {
|
||||||
if (user.loginIncentives > 50) return;
|
if (user.loginIncentives > 50) return;
|
||||||
|
|
||||||
//Remove old noitification if it exists
|
// Remove old noitification if it exists
|
||||||
user.notifications
|
user.notifications
|
||||||
.toObject()
|
.toObject()
|
||||||
.find((notif, index) => {
|
.find((notif, index) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue