[backend/core] Fix method signature clash in UserService

This commit is contained in:
Laura Hausmann 2024-02-28 19:47:56 +01:00
parent 5817f4c856
commit 3e1a34c0b3
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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));