[backend/core] Fix method signature clash in UserService
This commit is contained in:
parent
5817f4c856
commit
3e1a34c0b3
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ public class AccountController(
|
||||||
db.Update(user);
|
db.Update(user);
|
||||||
db.Update(user.UserProfile);
|
db.Update(user.UserProfile);
|
||||||
await db.SaveChangesAsync();
|
await db.SaveChangesAsync();
|
||||||
await userSvc.UpdateUserAsync(user);
|
await userSvc.UpdateLocalUserAsync(user);
|
||||||
|
|
||||||
if (prevAvatarId != null && user.Avatar?.Id != prevAvatarId)
|
if (prevAvatarId != null && user.Avatar?.Id != prevAvatarId)
|
||||||
await driveSvc.RemoveFile(prevAvatarId);
|
await driveSvc.RemoveFile(prevAvatarId);
|
||||||
|
|
|
@ -296,7 +296,7 @@ public class UserService(
|
||||||
return user;
|
return user;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task UpdateUserAsync(User user)
|
public async Task UpdateLocalUserAsync(User user)
|
||||||
{
|
{
|
||||||
if (user.Host != null) throw new Exception("This method is only valid for local users");
|
if (user.Host != null) throw new Exception("This method is only valid for local users");
|
||||||
var activity = activityRenderer.RenderUpdate(await userRenderer.RenderAsync(user));
|
var activity = activityRenderer.RenderUpdate(await userRenderer.RenderAsync(user));
|
||||||
|
|
Loading…
Add table
Reference in a new issue