Skip to content

Commit

Permalink
fix a dumb issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AerisG222 committed Sep 9, 2023
1 parent 8c3167a commit 7a86cd2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/api/Services/Photos/PhotoAdapter.cs
Expand Up @@ -25,7 +25,7 @@ public MawApi.ViewModels.Photos.PhotoViewModel Adapt(Photo p)
return new MawApi.ViewModels.Photos.PhotoViewModel {
Id = p.Id,
CategoryId = p.CategoryId,
CreateDate = DateTime.MinValue,
CreateDate = p.CreateDate ?? DateTime.MinValue,
Latitude = p.Latitude,
Longitude = p.Longitude,
ImageXsSq = _adapter.Adapt(p.XsSqInfo, p.Id, "xs_sq"),
Expand Down
2 changes: 1 addition & 1 deletion src/api/Services/Photos/PhotoCategoryAdapter.cs
Expand Up @@ -27,7 +27,7 @@ public PhotoCategoryViewModel Adapt(Category c)
Id = c.Id,
Name = c.Name,
Year = c.Year,
CreateDate = DateTime.MinValue,
CreateDate = c.CreateDate,
Latitude = c.Latitude,
Longitude = c.Longitude,
PhotoCount = c.PhotoCount,
Expand Down
2 changes: 1 addition & 1 deletion src/api/Services/Videos/VideoAdapter.cs
Expand Up @@ -25,7 +25,7 @@ public MawApi.ViewModels.Videos.VideoViewModel Adapt(Video v)
return new MawApi.ViewModels.Videos.VideoViewModel {
Id = v.Id,
CategoryId = v.CategoryId,
CreateDate = DateTime.MinValue,
CreateDate = v.CreateDate ?? DateTime.MinValue,
Latitude = v.Latitude,
Longitude = v.Longitude,
Duration = v.Duration,
Expand Down
2 changes: 1 addition & 1 deletion src/api/Services/Videos/VideoCategoryAdapter.cs
Expand Up @@ -27,7 +27,7 @@ public VideoCategoryViewModel Adapt(Category c)
Id = c.Id,
Name = c.Name,
Year = c.Year,
CreateDate = DateTime.MinValue,
CreateDate = c.CreateDate,
Latitude = c.Latitude,
Longitude = c.Longitude,
VideoCount = c.VideoCount,
Expand Down

0 comments on commit 7a86cd2

Please sign in to comment.