Fix skill deletion (#20)
This commit is contained in:
parent
b98d28adb4
commit
e30e28c279
@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyVersion>1.0.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<AssemblyVersion>1.0.1.0</AssemblyVersion>
|
||||
<FileVersion>1.0.1.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
@ -68,7 +68,7 @@ namespace JobsJobsJobs.Server.Data
|
||||
if (!ids.Any()) return;
|
||||
|
||||
db.Skills.RemoveRange(await db.Skills.AsNoTracking()
|
||||
.Where(s => !ids.Contains(s.Id)).ToListAsync()
|
||||
.Where(s => s.CitizenId == citizenId && !ids.Contains(s.Id)).ToListAsync()
|
||||
.ConfigureAwait(false));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user