From 0ec83e0ec3802e96c4831b2926c8e65e8c3a16d4 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 30 Dec 2021 01:05:33 +0500 Subject: [PATCH] fix --- helpers/birthdays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/birthdays.js b/helpers/birthdays.js index be065cb5..e6ed1c2e 100644 --- a/helpers/birthdays.js +++ b/helpers/birthdays.js @@ -16,7 +16,7 @@ async function init(client) { if (channel) { client.usersData .find({ birthdate: { $gt: 1 } }) - .then((users) => { + .then(async (users) => { for (const user of users) { const month = user.birthdate.getUTCMonth() + 1; const day = user.birthdate.getUTCDate();