diff --git a/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts b/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts index c6f518b2..1868ef37 100644 --- a/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts +++ b/backend/src/plugins/Counters/commands/ResetAllCounterValuesCmd.ts @@ -50,8 +50,10 @@ export const ResetAllCounterValuesCmd = guildCommand()({ 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); }, });