WIP debugging

This commit is contained in:
Aaron Kimbre
2025-01-19 19:07:55 -06:00
parent b7c579fb84
commit b01b3cc38d
9 changed files with 52 additions and 30 deletions

View File

@@ -62,6 +62,7 @@ std::optional<MailInfo> MySQLDatabase::GetMail(const uint64_t mailId) {
}
uint32_t MySQLDatabase::GetUnreadMailCount(const uint32_t characterId) {
LOG("Getting unread mail count for character %i", characterId);
auto res = ExecuteSelect("SELECT COUNT(*) AS number_unread FROM mail WHERE receiver_id=? AND was_read=0;", characterId);
if (!res->next()) {