Adds ChangeBanner for Creators

This commit is contained in:
Jonathan Bourdon
2024-08-05 16:32:00 -04:00
parent e617b5ffd3
commit 8f0ed2644b
8 changed files with 30 additions and 56 deletions

View File

@@ -7,7 +7,7 @@ public record GetCurrentUserProfilePictureQuery : IRequest<Stream>;
public class GetCurrentUserProfilePictureQueryHandler(
IIdentityService identityService,
IAzureBlobStorageService azureBlobStorageService
IBlobStorage blobStorage
)
: IRequestHandler<GetCurrentUserProfilePictureQuery, Stream>
{
@@ -15,7 +15,7 @@ public class GetCurrentUserProfilePictureQueryHandler(
{
var identityUser = await identityService.GetCurrentUserAsync();
return await azureBlobStorageService.DownloadFileAsync(
return await blobStorage.DownloadFileAsync(
ContainerNames.Users,
$"{identityUser.Id.ToString()}/{SubDirectoryNames.Profile}/{CommonFileNames.ProfilePicture}",
cancellationToken);