feat(backend): avatar migration stuff
This commit is contained in:
parent
bcdb2f9540
commit
77e74dd331
15 changed files with 2094 additions and 0 deletions
|
@ -67,6 +67,7 @@ public class MemberAvatarUpdateJob(
|
|||
await objectStorageService.PutObjectAsync(Path(id, hash), image, "image/webp");
|
||||
|
||||
member.Avatar = hash;
|
||||
member.AvatarMigrated = true;
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
if (prevHash != null && prevHash != hash)
|
||||
|
|
|
@ -68,6 +68,7 @@ public class UserAvatarUpdateJob(
|
|||
await objectStorageService.PutObjectAsync(Path(id, hash), image, "image/webp");
|
||||
|
||||
user.Avatar = hash;
|
||||
user.AvatarMigrated = true;
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
if (prevHash != null && prevHash != hash)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue