diff --git a/common/repositories/inventory_snapshots_repository.h b/common/repositories/inventory_snapshots_repository.h index 71406c9b5..487adc37d 100644 --- a/common/repositories/inventory_snapshots_repository.h +++ b/common/repositories/inventory_snapshots_repository.h @@ -103,7 +103,7 @@ public: del_time -= RuleI(Character, InvSnapshotHistoryD) * 86400; } - DeleteWhere(db, fmt::format("`character_id` = '{}' AND `time_index` = '{}'", character_id, del_time)); + DeleteWhere(db, fmt::format("`character_id` = '{}' AND `time_index` <= '{}'", character_id, del_time)); } static void ListCharacterInvSnapshots(Database &db, uint32 character_id, std::list> &is_list)