Skip to content

Commit

Permalink
Research in the device list (#894)
Browse files Browse the repository at this point in the history
Co-authored-by: crib <christophe.ribeiro@cgi.com>
  • Loading branch information
ChristopheRib63 and crib authored Jul 1, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0a10fa0 commit e6f25f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AzureIoTHub.Portal/Server/Services/DeviceService.cs
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ public async Task<PaginationResult<Twin>> GetAllEdgeDevice(
if (!string.IsNullOrWhiteSpace(searchText))
{
#pragma warning disable CA1308 // Normalize strings to uppercase
filter += $" AND (STARTSWITH(deviceId, '{searchText.ToLowerInvariant()}') OR (is_defined(tags.deviceName) AND STARTSWITH(tags.deviceName, '{searchText}')))";
filter += $" AND (STARTSWITH(deviceId, '{searchText}') OR (is_defined(tags.deviceName) AND STARTSWITH(tags.deviceName, '{searchText}')))";
#pragma warning restore CA1308 // Normalize strings to uppercase
}

@@ -159,7 +159,7 @@ public async Task<PaginationResult<Twin>> GetAllDevice(
if (!string.IsNullOrWhiteSpace(searchText))
{
#pragma warning disable CA1308 // Normalize strings to uppercase
filter += $" AND (STARTSWITH(deviceId, '{searchText.ToLowerInvariant()}') OR (is_defined(tags.deviceName) AND STARTSWITH(tags.deviceName, '{searchText}')))";
filter += $" AND (STARTSWITH(deviceId, '{searchText}') OR (is_defined(tags.deviceName) AND STARTSWITH(tags.deviceName, '{searchText}')))";
#pragma warning restore CA1308 // Normalize strings to uppercase
}

0 comments on commit e6f25f0

Please sign in to comment.