diff --git a/docs/swagger/V1/swagger.verified.json b/docs/swagger/V1/swagger.verified.json index 675a17b78..b15ae29c0 100644 --- a/docs/swagger/V1/swagger.verified.json +++ b/docs/swagger/V1/swagger.verified.json @@ -3940,7 +3940,7 @@ "type": "string", "format": "guid" }, - "createdAt": { + "seenAt": { "type": "string", "format": "date-time" }, @@ -4305,7 +4305,7 @@ "type": "string", "format": "guid" }, - "createdAt": { + "seenAt": { "type": "string", "format": "date-time" }, diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs index 6f1d94525..798dadd7f 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/GetDialogDto.cs @@ -40,7 +40,7 @@ public sealed class GetDialogDto public class GetDialogDialogSeenLogDto { public Guid Id { get; set; } - public DateTimeOffset CreatedAt { get; set; } + public DateTimeOffset SeenAt { get; set; } public string EndUserIdHash { get; set; } = null!; diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs index 810354e63..6bcb21021 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Get/MappingProfile.cs @@ -16,7 +16,8 @@ public MappingProfile() .ForMember(dest => dest.Status, opt => opt.MapFrom(src => src.StatusId)) .ForMember(dest => dest.SeenSinceLastUpdate, opt => opt.Ignore()); - CreateMap(); + CreateMap() + .ForMember(dest => dest.SeenAt, opt => opt.MapFrom(src => src.CreatedAt)); CreateMap() .ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.TypeId)); diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/MappingProfile.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/MappingProfile.cs index d32ede1c4..fd0d42f3f 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/MappingProfile.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/MappingProfile.cs @@ -30,6 +30,7 @@ public MappingProfile() .ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.TypeId)); CreateMap() + .ForMember(dest => dest.SeenAt, opt => opt.MapFrom(src => src.CreatedAt)) .ForMember(dest => dest.EndUserIdHash, opt => opt.MapFrom(src => src.EndUserId)); CreateMap() diff --git a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs index 9f335989c..0e5e29e08 100644 --- a/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs +++ b/src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries/Search/SearchDialogDto.cs @@ -29,7 +29,7 @@ public sealed class SearchDialogDto public class SearchDialogDialogSeenLogDto { public Guid Id { get; set; } - public DateTimeOffset CreatedAt { get; set; } + public DateTimeOffset SeenAt { get; set; } public string EndUserIdHash { get; set; } = null!;