[backend/api] Recursively reload user after refetching

This commit is contained in:
pancakes 2025-02-04 11:14:31 +10:00 committed by Laura Hausmann
parent 72a6d83351
commit 9ac80f3945
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -155,7 +155,7 @@ public class UserController(
await userSvc.UpdateUserAsync(user, force: true);
db.ChangeTracker.Clear();
await db.ReloadEntityRecursivelyAsync(user);
user = await db.Users.IncludeCommonProperties()
.FirstOrDefaultAsync(p => p.Id == id && p.Host != null && p.Uri != null)