diff --git a/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs b/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs index ab18505e..326ce3b9 100644 --- a/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs +++ b/ProjectLighthouse.Servers.GameServer/Controllers/Matching/MatchController.cs @@ -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)