From 7781c531a06a6ab39855827c9c7ee15e1a42a3f7 Mon Sep 17 00:00:00 2001
From: Guillaume Vagner <guillaume.vagner@supelec.fr>
Date: Tue, 5 Mar 2019 08:45:30 +0100
Subject: [PATCH] fix allbirthdays in schedule

---
 schedule.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/schedule.js b/schedule.js
index 6a445db..f878b0e 100644
--- a/schedule.js
+++ b/schedule.js
@@ -31,7 +31,7 @@ function addSchedule(chan, time, bot) {
                 } else { // chan à plusieurs
                     var msg = '<b>Joyeux anniversaire</b> à :\n'
                 }
-                users.forEach((user, index, array) => {
+                newUsers.forEach((user, index, array) => {
                     if (index !== array.length - 1) {
                         msg += `├ <a href = "https://linkcs.fr/user/${user.login}">${user.name}</a>\n`
                     } else {
-- 
GitLab