fly há 1 ano atrás
pai
commit
ca4cbb794f
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      Interfaces/Cache/CacheManager.cs

+ 2 - 2
Interfaces/Cache/CacheManager.cs

@@ -102,9 +102,9 @@ namespace WingServerCommon.Interfaces.Cache
                 result = _loadCacheFromDbWithId(documentId);
                 if (result == null)
                 {
-                    throw new InvalidOperationException($"not found from Db with id:{documentId}");
+                    Logger.WriteLineWarn($"not found from Db with id:{documentId}");
+                    return result;
                 }
-
                 CacheList.Add(result);
                 lock (_dirtyCodes)
                 {