Refactors the add and update album and track slices across the stack

This commit is contained in:
BinaryAlley committed 2026-09-19 09:29:52 -07:00
1 parent ea6eb9f796
commit 54cae054c1
30 files changed
+846 -325

No files matched your search

@@ -72,8 +72,9 @@ public static class AlbumMapping
Tracks = [.. domainEntity.Tracks.Select(track => track.ToRepositoryEntity(domainEntity.Id.Value, libraryId))],
CreatedOnUtc = domainEntity.CreatedOnUtc,
CreatedBy = Guid.Empty,
UpdatedOnUtc = domainEntity.UpdatedOnUtc.HasValue ? domainEntity.UpdatedOnUtc : null,
UpdatedBy = domainEntity.UpdatedOnUtc.HasValue ? Guid.NewGuid() : null
// The audit columns are owned by the auditing interceptor, which stamps only the rows that actually changed, so they are never mapped here.
UpdatedOnUtc = null,
UpdatedBy = null
};
}
}