Skip to content

Commit

Permalink
Add Icon property to Mapset entity
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdewid committed Apr 25, 2024
1 parent a7518c4 commit 5d94370
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/FunderMaps.Core/Entities/Mapset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public sealed class Mapset : IEntityIdentifier<Guid>
/// </summary>
public string? Note { get; set; }

/// <summary>
/// Icon.
/// </summary>
public string? Icon { get; set; }

/// <summary>
/// Unique identifier.
/// </summary>
Expand Down
2 changes: 2 additions & 0 deletions src/FunderMaps.Data/Repositories/MapsetRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public async Task<Mapset> GetPublicAsync2(Guid id)
m.public,
m.consent,
m.note,
m.icon,
NULL as fence_municipality,
(
SELECT jsonb_agg(maplayers.layer)
Expand Down Expand Up @@ -68,6 +69,7 @@ public async IAsyncEnumerable<Mapset> GetByOrganizationIdAsync2(Guid id)
m.public,
m.consent,
m.note,
m.icon,
o.fence_municipality,
(
SELECT jsonb_agg(maplayers.layer)
Expand Down
1 change: 1 addition & 0 deletions src/FunderMaps.WebApi/Controllers/GeocoderController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace FunderMaps.WebApi.Controllers;

// TODO: Move
public sealed class GeocoderInfo
{
public Building Building { get; set; } = default!;
Expand Down

0 comments on commit 5d94370

Please sign in to comment.