mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
fix: remove Promise.resolve() return and fix queue type
This commit is contained in:
1 parent
d5cc5b8741
commit
67e45729a3
23 files changed
+102
-117
No files matched your search
@@ -15,7 +15,7 @@ export const postBotStats = async ({ client, executionId }: PostBotStatsParams)
|
||||
|
||||
try {
|
||||
if (client.shard?.ids[0] !== 0) {
|
||||
return Promise.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
let guildCount = 0;
|
||||
@@ -129,7 +129,7 @@ export const postBotStats = async ({ client, executionId }: PostBotStatsParams)
|
||||
sites.map((site) => {
|
||||
if (!site.enabled) {
|
||||
// return if site is disabled
|
||||
return Promise.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
const options = {
|
||||
|
||||
@@ -18,7 +18,7 @@ export const startLoadTest = async ({ client, executionId }: StartLoadTestParams
|
||||
|
||||
if (!loadTestOptions.enabled) {
|
||||
logger.debug('Load test is disabled in options, cancelling.');
|
||||
return Promise.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
const channelIds = loadTestOptions.channelIdsToJoin;
|
||||
|
||||
Reference in new issue
Block a user