diff --git a/backend/api/Services/RobotModelService.cs b/backend/api/Services/RobotModelService.cs index f66612a2..e5f95272 100644 --- a/backend/api/Services/RobotModelService.cs +++ b/backend/api/Services/RobotModelService.cs @@ -104,7 +104,7 @@ public async Task Update(RobotModel robotModel) public void DetachTracking(FlotillaDbContext context, RobotModel robotModel) { - _context.Entry(robotModel).State = EntityState.Detached; + context.Entry(robotModel).State = EntityState.Detached; } } }