From 8a04578a588abcb455195f360bad76a35f11f9e8 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 2 Feb 2024 23:52:32 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20cache=20mql=20field=20errors=20(?= =?UTF-8?q?#3191)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ๐Ÿ› store cached values in ms365 provider Signed-off-by: Dominik Richter * ๐Ÿงน use res to ensure the state is properly set --------- Signed-off-by: Dominik Richter Co-authored-by: Dominik Richter --- providers-sdk/v1/plugin/runtime.go | 1 + 1 file changed, 1 insertion(+) diff --git a/providers-sdk/v1/plugin/runtime.go b/providers-sdk/v1/plugin/runtime.go index 094b09099a..f44a7741c1 100644 --- a/providers-sdk/v1/plugin/runtime.go +++ b/providers-sdk/v1/plugin/runtime.go @@ -242,6 +242,7 @@ func GetOrCompute[T any](cached *TValue[T], compute func() (T, error)) *TValue[T res := &TValue[T]{Data: x, Error: err} if err != NotReady { res.State = StateIsSet | StateIsNull + (*cached) = *res } return res }