Skip to content

Commit

Permalink
Compare to lower case values
Browse files Browse the repository at this point in the history
  • Loading branch information
aeshub committed Nov 14, 2023
1 parent d6892e6 commit 6a3107f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/Services/RobotService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ public async Task<IList<Robot>> ReadLocalizedRobotsForInstallation(string instal
{
return await GetRobotsWithSubModels()
.Where(robot =>
robot.CurrentInstallation.Equals(installationCode)
#pragma warning disable CA1304
robot.CurrentInstallation.ToLower().Equals(installationCode.ToLower())
#pragma warning restore CA1304
&& robot.CurrentArea != null)
.ToListAsync();
}
Expand Down

0 comments on commit 6a3107f

Please sign in to comment.