Skip to content

Commit 6ef791a

Browse files
authored
Merge pull request #231 from dagstuan/ignoreCaseWhenAddingWatch
Convert add key to uppercase when adding the watch.
2 parents 4f4f88a + 2488fb9 commit 6ef791a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SkredvarselGarminWeb/SkredvarselGarminWeb/Endpoints/WatchApiRouteBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static void MapWatchApiEndpoints(this IEndpointRouteBuilder app)
115115
{
116116
var user = dbContext.GetUserOrThrow(ctx.User);
117117

118-
var watchAddRequest = dbContext.WatchAddRequests.FirstOrDefault(r => r.Key == watchAddKey);
118+
var watchAddRequest = dbContext.WatchAddRequests.FirstOrDefault(r => r.Key.Equals(watchAddKey, StringComparison.CurrentCultureIgnoreCase));
119119

120120
if (watchAddRequest == null)
121121
{

0 commit comments

Comments
 (0)