Skip to content

Commit

Permalink
SWIK-1683 added parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaun committed Apr 23, 2018
1 parent b2ed440 commit e3bfed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function insertAuthors(notifications) {
//Create array of user ids
let arrayOfUserIds = [];
notifications.forEach((notification) => {
const id = notification.user_id;
const id = parseInt(notification.user_id);
if (id !== '0' && !arrayOfUserIds.includes(id)) {
arrayOfUserIds.push(id);
}
Expand Down

0 comments on commit e3bfed2

Please sign in to comment.