mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Merge branch 'master' of https://github.com/EQEmu/Server into integration/multi-tenancy-expansions-repository
This commit is contained in:
commit
02fa823736
@ -484,9 +484,6 @@ void Database::DeleteInstance(uint16 instance_id)
|
|||||||
{
|
{
|
||||||
std::string query;
|
std::string query;
|
||||||
|
|
||||||
query = StringFormat("DELETE FROM instance_list WHERE id=%u", instance_id);
|
|
||||||
QueryDatabase(query);
|
|
||||||
|
|
||||||
query = StringFormat("DELETE FROM instance_list_player WHERE id=%u", instance_id);
|
query = StringFormat("DELETE FROM instance_list_player WHERE id=%u", instance_id);
|
||||||
QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
|
|
||||||
@ -574,6 +571,9 @@ void Database::PurgeExpiredInstances()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
|
query = StringFormat("DELETE FROM instance_list WHERE id=%u", atoi(row[0]));
|
||||||
|
QueryDatabase(query);
|
||||||
|
|
||||||
DeleteInstance(atoi(row[0]));
|
DeleteInstance(atoi(row[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user