[Bots] Fix unnecessary failed to save timer error (#3788)

This commit is contained in:
nytmyr 2023-12-18 15:39:14 -06:00 committed by GitHub
parent 933b83add6
commit 6e325c1ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1022,10 +1022,7 @@ bool BotDatabase::DeleteTimers(const uint32 bot_id)
return false;
}
auto success = BotTimersRepository::DeleteWhere(database, fmt::format("bot_id = {}", bot_id));
if (!success) {
return false;
}
BotTimersRepository::DeleteWhere(database, fmt::format("bot_id = {}", bot_id));
return true;
}