Adds media library cover image

This commit is contained in:
BinaryAlley committed 2025-01-03 16:01:20 +02:00
1 parent 89debaeaad
commit 666a739b1d
43 files changed
+1170 -94

No files matched your search

@@ -17,15 +17,14 @@ public static class AddMediaLibraryRequestMapping
/// Converts <paramref name="request"/> to <see cref="AddLibraryCommand"/>.
/// </summary>
/// <param name="request">The request to be converted.</param>
/// <param name="userId">The Id of the user owning the media library.</param>
/// <returns>The converted command.</returns>
public static AddLibraryCommand ToCommand(this AddLibraryRequest request, Guid userId)
public static AddLibraryCommand ToCommand(this AddLibraryRequest request)
{
return new AddLibraryCommand(
userId,
request.Title,
request.LibraryType,
request.ContentLocations
request.ContentLocations,
request.CoverImage
);
}
}