Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Webreaper committed Dec 31, 2024
1 parent b60a158 commit d12a5b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Damselfly.Core/ScopedServices/UserConfigService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ protected override async Task PersistSetting(ConfigSetRequest setRequest)
await using var db = ImageContext.GetImageContext( scope );

var existing = await db.ConfigSettings
.Where(x => x.Name == setRequest.Name && x.UserId == setRequest.UserId)
.FirstOrDefaultAsync();
.FirstOrDefaultAsync(x => x.Name == setRequest.Name && x.UserId == setRequest.UserId);

if ( string.IsNullOrEmpty(setRequest.NewValue) )
{
Expand Down

0 comments on commit d12a5b5

Please sign in to comment.