Clear stale pending expedition lockouts

Delete pending lockouts of members on expedition creation

Delete pending lockouts when all members removed from expedition

This fixes an edge case where members could incorrectly be assigned
pending lockouts that were never cleared from the database (from a
server crash or other situation) after entering another dz.
This commit is contained in:
hg
2020-06-13 21:28:21 -04:00
parent 3f3cb9114b
commit 7e532869a0
5 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ public:
uint32_t CreateInstance();
void AddCharacter(uint32_t character_id);
void SaveInstanceMembersToDatabase(const std::unordered_set<uint32_t> character_ids);
void SaveInstanceMembersToDatabase(const std::unordered_set<uint32_t>& character_ids);
uint64_t GetExpireTime() const { return std::chrono::system_clock::to_time_t(m_expire_time); }
uint16_t GetInstanceID() const { return static_cast<uint16_t>(m_instance_id); };