return parsed card when setting

This commit is contained in:
ppc
2024-09-02 16:23:48 +01:00
parent ec98003d2c
commit 14efbc4971
2 changed files with 11 additions and 12 deletions
+1 -7
View File
@@ -1,11 +1,5 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
@@ -107,7 +101,7 @@ internal static class WebServer
return;
}
if (cardPresenter.SetCard(request.MatrixCode))
if (cardPresenter.SetCard(request.MatrixCode) != null)
{
ctx.Response.StatusCode = 202;
}