Skip to content
Snippets Groups Projects
Commit 7781c531 authored by Guillaume Vagner's avatar Guillaume Vagner
Browse files

fix allbirthdays in schedule

parent 29a68cfe
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ function addSchedule(chan, time, bot) { ...@@ -31,7 +31,7 @@ function addSchedule(chan, time, bot) {
} else { // chan à plusieurs } else { // chan à plusieurs
var msg = '<b>Joyeux anniversaire</b> à :\n' var msg = '<b>Joyeux anniversaire</b> à :\n'
} }
users.forEach((user, index, array) => { newUsers.forEach((user, index, array) => {
if (index !== array.length - 1) { if (index !== array.length - 1) {
msg += `├ <a href = "https://linkcs.fr/user/${user.login}">${user.name}</a>\n` msg += `├ <a href = "https://linkcs.fr/user/${user.login}">${user.name}</a>\n`
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment