Tweak counter reset logic (v2)
This commit is contained in:
parent
7fc86d34e9
commit
724abc89b9
1 changed files with 3 additions and 1 deletions
|
@ -50,8 +50,10 @@ export const ResetAllCounterValuesCmd = guildCommand<CountersPluginType>()({
|
|||
|
||||
const lock = await pluginData.locks.acquire(counterIdLock(counterId));
|
||||
await resetAllCounterValues(pluginData, args.counterName);
|
||||
lock.unlock();
|
||||
lock.interrupt();
|
||||
|
||||
sendSuccessMessage(pluginData, message.channel, `All counter values for **${counterName}** have been reset`);
|
||||
|
||||
pluginData.getKnubInstance().reloadGuild(pluginData.guild.id);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue