Adds PhotoAlbum, CreatorHome, AboutCreator.
This commit is contained in:
@@ -46,7 +46,6 @@ public class ChangeLogoHandler(
|
||||
{
|
||||
var creator = await context
|
||||
.Creators
|
||||
.Include(c => c.Images)
|
||||
.SingleOrDefaultAsync(
|
||||
c => c.Id == request.CreatorId,
|
||||
cancellationToken: ct);
|
||||
@@ -57,7 +56,6 @@ public class ChangeLogoHandler(
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: this upload should be done to the Creators container
|
||||
var blobUrl = await blobStorage.UploadFileAsync(
|
||||
ContainerNames.Creators,
|
||||
$"{request.CreatorId}/{SubDirectoryNames.Profile}/{CommonFileNames.ProfilePicture}",
|
||||
@@ -65,7 +63,7 @@ public class ChangeLogoHandler(
|
||||
request.File.ContentType,
|
||||
ct);
|
||||
|
||||
creator.Images.Logo = $"{blobUrl}?t={DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}";
|
||||
creator.PortraitUrl = $"{blobUrl}?t={DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}";
|
||||
|
||||
await context.SaveChangesAsync(ct);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user