Skip to content

Commit

Permalink
Research in the device list
Browse files Browse the repository at this point in the history
  • Loading branch information
crib committed Jul 1, 2022
1 parent 0a10fa0 commit 05cacda
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
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 05cacda

Please sign in to comment.