mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 03:31:29 +00:00
Fix issue where last contact isn't sent if matchmaking is disabled
This commit is contained in:
parent
be452270e3
commit
a9944ec74d
1 changed files with 2 additions and 2 deletions
|
@ -43,6 +43,8 @@ public class MatchController : ControllerBase
|
|||
UserEntity? user = await this.database.UserFromGameToken(token);
|
||||
if (user == null) return this.Forbid();
|
||||
|
||||
await LastContactHelper.SetLastContact(this.database, user, token.GameVersion, token.Platform);
|
||||
|
||||
// Do not allow matchmaking if it has been disabled
|
||||
if (!ServerConfiguration.Instance.Matchmaking.MatchmakingEnabled) return this.BadRequest();
|
||||
|
||||
|
@ -79,8 +81,6 @@ public class MatchController : ControllerBase
|
|||
|
||||
#endregion
|
||||
|
||||
await LastContactHelper.SetLastContact(this.database, user, token.GameVersion, token.Platform);
|
||||
|
||||
#region Process match data
|
||||
|
||||
switch (matchData)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue