handle sonar bugs

This commit is contained in:
Ean Milligan (Bastion) 2023-05-01 13:57:46 -04:00
parent 1452c7ec44
commit 20008865a7
1 changed files with 24 additions and 22 deletions

View File

@ -27,6 +27,7 @@ const oneDay = oneHour * 24;
const oneWeek = oneDay * 7;
setInterval(() => {
const now = new Date().getTime();
if (joinRequestMap.size) {
joinRequestMap.forEach((joinRequest, key) => {
switch (joinRequest.status) {
case JoinRequestStatus.Approved:
@ -49,6 +50,7 @@ setInterval(() => {
break;
}
});
}
// Run cleaner every hour
}, oneHour);