Skip to content

Commit

Permalink
Remove error message for faulty update
Browse files Browse the repository at this point in the history
Return map name in activity
  • Loading branch information
AlexMacocian committed Aug 16, 2024
1 parent f93b177 commit a46d0f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GuildWarsPartySearch/Endpoints/PostPartySearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public override async Task ExecuteAsync(PostPartySearchRequest? message, Cancell
if (message?.Map == Map.None &&
message.District == 0)
{
scopedLogger.LogError("Detected faulty update. Will not update location");
scopedLogger.LogDebug("Detected empty update message. Will not update location");
var faultyResponse = await Success;
if (message.GetFullList)
{
Expand Down
3 changes: 2 additions & 1 deletion GuildWarsPartySearch/Endpoints/StatusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public async Task<IActionResult> GetActiveMaps()
{
District = b.District,
MapId = b.Map?.Id ?? -1,
LastUpdate = b.LastSeen ?? DateTime.MinValue
MapName = b?.Map?.Name ?? default,
LastUpdate = b?.LastSeen ?? DateTime.MinValue
}));
}
}
2 changes: 2 additions & 0 deletions GuildWarsPartySearch/Models/Endpoints/MapActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public class MapActivity
public int MapId { get; set; }
[JsonProperty(nameof(District))]
public int District { get; set; }
[JsonProperty(nameof(MapName))]
public string? MapName { get; set; }
[JsonProperty(nameof(LastUpdate))]
public DateTime LastUpdate { get; set; }
}

0 comments on commit a46d0f7

Please sign in to comment.