Update edit_channel.ts

This commit is contained in:
ITOH
2021-05-07 22:22:36 +02:00
parent fa8433da2c
commit d629cc60df

View File

@@ -139,7 +139,7 @@ function processEditChannelQueue() {
const now = Date.now();
editChannelNameTopicQueue.forEach(async (request) => {
eventHandlers.debug?.("loop", `Running forEach loop in edit_channel file.`);
if (now > request.timestamp) return;
if (now < request.timestamp) return;
// 10 minutes have passed so we can reset this channel again
if (!request.items.length) {
return editChannelNameTopicQueue.delete(request.channelId);