Commit bde5845 1 parent 9b84483 commit bde5845 Copy full SHA for bde5845
File tree 5 files changed +7
-5
lines changed
src/Digdir.Domain.Dialogporten.Application/Features/V1/EndUser/Dialogs/Queries
5 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3940
3940
"type" : " string" ,
3941
3941
"format" : " guid"
3942
3942
},
3943
- "createdAt " : {
3943
+ "seenAt " : {
3944
3944
"type" : " string" ,
3945
3945
"format" : " date-time"
3946
3946
},
4305
4305
"type" : " string" ,
4306
4306
"format" : " guid"
4307
4307
},
4308
- "createdAt " : {
4308
+ "seenAt " : {
4309
4309
"type" : " string" ,
4310
4310
"format" : " date-time"
4311
4311
},
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public sealed class GetDialogDto
40
40
public class GetDialogDialogSeenLogDto
41
41
{
42
42
public Guid Id { get ; set ; }
43
- public DateTimeOffset CreatedAt { get ; set ; }
43
+ public DateTimeOffset SeenAt { get ; set ; }
44
44
45
45
public string EndUserIdHash { get ; set ; } = null ! ;
46
46
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ public MappingProfile()
16
16
. ForMember ( dest => dest . Status , opt => opt . MapFrom ( src => src . StatusId ) )
17
17
. ForMember ( dest => dest . SeenSinceLastUpdate , opt => opt . Ignore ( ) ) ;
18
18
19
- CreateMap < Domain . Dialogs . Entities . DialogSeenLog , GetDialogDialogSeenLogDto > ( ) ;
19
+ CreateMap < DialogSeenLog , GetDialogDialogSeenLogDto > ( )
20
+ . ForMember ( dest => dest . SeenAt , opt => opt . MapFrom ( src => src . CreatedAt ) ) ;
20
21
21
22
CreateMap < DialogActivity , GetDialogDialogActivityDto > ( )
22
23
. ForMember ( dest => dest . Type , opt => opt . MapFrom ( src => src . TypeId ) ) ;
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public MappingProfile()
30
30
. ForMember ( dest => dest . Type , opt => opt . MapFrom ( src => src . TypeId ) ) ;
31
31
32
32
CreateMap < DialogSeenLog , SearchDialogDialogSeenLogDto > ( )
33
+ . ForMember ( dest => dest . SeenAt , opt => opt . MapFrom ( src => src . CreatedAt ) )
33
34
. ForMember ( dest => dest . EndUserIdHash , opt => opt . MapFrom ( src => src . EndUserId ) ) ;
34
35
35
36
CreateMap < DialogActivity , SearchDialogDialogActivityDto > ( )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public sealed class SearchDialogDto
29
29
public class SearchDialogDialogSeenLogDto
30
30
{
31
31
public Guid Id { get ; set ; }
32
- public DateTimeOffset CreatedAt { get ; set ; }
32
+ public DateTimeOffset SeenAt { get ; set ; }
33
33
34
34
public string EndUserIdHash { get ; set ; } = null ! ;
35
35
You can’t perform that action at this time.
0 commit comments