3
0

Fix broken setting value provisioning due to missing defaults

This commit is contained in:
Tomaž Jerman
2023-04-24 12:32:22 +02:00
parent 4d36558fac
commit 7675e5db3b

View File

@@ -2,6 +2,7 @@ package envoy
import (
"context"
"time"
"github.com/cortezaproject/corteza/server/pkg/envoyx"
"github.com/cortezaproject/corteza/server/store"
@@ -29,6 +30,10 @@ func (e StoreEncoder) prepareSetting(ctx context.Context, p envoyx.EncodeParams,
// @todo merge conflicts if we do existing assertion
if res.UpdatedAt.IsZero() {
res.UpdatedAt = time.Now()
}
n.Resource = res
}