From 5ef5a9fd124175910b700dfdfeaab1c3b4269804 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 15 Apr 2026 14:45:49 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20logica=20setPzCounter=20per=20check=20p?= =?UTF-8?q?=C3=A8resenza=20chiave=20redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MP.IOC/Data/MpDataService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MP.IOC/Data/MpDataService.cs b/MP.IOC/Data/MpDataService.cs index c39b6c3a..60820464 100644 --- a/MP.IOC/Data/MpDataService.cs +++ b/MP.IOC/Data/MpDataService.cs @@ -3028,7 +3028,7 @@ namespace MP.IOC.Data { var currKey = Utils.RedKeyPzCount(idxMacchina, MpIoNS); RedisValue rawData = await redisDb.StringGetAsync(currKey); - if (!rawData.HasValue) + if (rawData.HasValue) { // salvo per + tempo... await redisDb.StringSetAsync(currKey, answ.ToString());