handle sonar bugs
This commit is contained in:
parent
1452c7ec44
commit
20008865a7
|
@ -27,6 +27,7 @@ const oneDay = oneHour * 24;
|
||||||
const oneWeek = oneDay * 7;
|
const oneWeek = oneDay * 7;
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
const now = new Date().getTime();
|
const now = new Date().getTime();
|
||||||
|
if (joinRequestMap.size) {
|
||||||
joinRequestMap.forEach((joinRequest, key) => {
|
joinRequestMap.forEach((joinRequest, key) => {
|
||||||
switch (joinRequest.status) {
|
switch (joinRequest.status) {
|
||||||
case JoinRequestStatus.Approved:
|
case JoinRequestStatus.Approved:
|
||||||
|
@ -49,6 +50,7 @@ setInterval(() => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
// Run cleaner every hour
|
// Run cleaner every hour
|
||||||
}, oneHour);
|
}, oneHour);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue