Update to .NET 6 and C# 10 (#5233)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
committed by
GitHub
parent
29f3d2d1ca
commit
af579b15cc
@@ -93,6 +93,11 @@ namespace Content.Server.Database
|
||||
.Where(p => p.Preference.UserId == userId.UserId && p.Slot == slot)
|
||||
.SingleOrDefaultAsync();
|
||||
|
||||
if (profile == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
db.Profile.Remove(profile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user