From 585c5c8537eb21dfc9f16108548e63d9ced3d971 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 24 Oct 2022 12:29:23 +0800 Subject: feat: Before move to FastEndpoints --- code/api/src/Services/VaultService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/api/src/Services') diff --git a/code/api/src/Services/VaultService.cs b/code/api/src/Services/VaultService.cs index 732911a..2f8d46e 100644 --- a/code/api/src/Services/VaultService.cs +++ b/code/api/src/Services/VaultService.cs @@ -31,7 +31,7 @@ public class VaultService cacheEntry => { cacheEntry.AbsoluteExpirationRelativeToNow = TimeSpan.FromSeconds(CACHE_TTL); var getSecretResponse = _client.GetFromJsonAsync>("/v1/kv/data/" + path).Result; - + if (getSecretResponse == null) { return default; } -- cgit v1.3