refactor: change ConvertBase64UriToImage from extension method to static method
This commit is contained in:
parent
6abf505c40
commit
d87856bf2c
4 changed files with 14 additions and 5 deletions
|
@ -39,7 +39,11 @@ public class UserAvatarUpdateInvocable(
|
|||
|
||||
try
|
||||
{
|
||||
var (hash, image) = await newAvatar.ConvertBase64UriToImage(size: 512, crop: true);
|
||||
var (hash, image) = await ImageObjectExtensions.ConvertBase64UriToImage(
|
||||
newAvatar,
|
||||
size: 512,
|
||||
crop: true
|
||||
);
|
||||
image.Seek(0, SeekOrigin.Begin);
|
||||
var prevHash = user.Avatar;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue