Auto-set CreatedAt/UpdatedAt via EF interceptor; standardize timestamp names across entities
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Musify.Application.PlayLists.Handlers
|
||||
var totalCount = await playListsQuery.CountAsync(cancellationToken);
|
||||
|
||||
var pagedPlayLists = await playListsQuery
|
||||
.OrderBy(p => p.CreatedDate)
|
||||
.OrderBy(p => p.CreatedAt)
|
||||
.Select(p => PlayListApplicationResponse.FromEntity(p))
|
||||
.ToPagedListAsync(request.PageNumber, request.PageSize, totalCount, cancellationToken);
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ namespace Musify.Application.PlayLists.Responses
|
||||
playList.SmallPictureName,
|
||||
playList.MediumPictureName,
|
||||
playList.LargePictureName,
|
||||
playList.CreatedDate,
|
||||
playList.UpdatedDate);
|
||||
playList.CreatedAt,
|
||||
playList.UpdatedAt);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user