[backend/core] Fix inspection

This commit is contained in:
Laura Hausmann 2024-02-26 22:21:20 +01:00
parent 46b60c8779
commit 01b7135208
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -222,7 +222,8 @@ public class UserService(
// Prevent multiple update jobs from running concurrently // Prevent multiple update jobs from running concurrently
db.Update(user); db.Update(user);
await db.Users.Where(u => u.Id == user.Id) var userId = user.Id;
await db.Users.Where(u => u.Id == userId)
.ExecuteUpdateAsync(p => p.SetProperty(u => u.LastFetchedAt, DateTime.UtcNow)); .ExecuteUpdateAsync(p => p.SetProperty(u => u.LastFetchedAt, DateTime.UtcNow));
var uri = user.Uri ?? throw new Exception("Encountered remote user without a Uri"); var uri = user.Uri ?? throw new Exception("Encountered remote user without a Uri");