associate Account and Identity by accountId (#3754)

This commit is contained in:
LHHDZ authored and GitHub committed 2022-09-28 13:25:59 -07:00
1 parent aacdcc4cad
commit e00a12b099
3 files changed
+36 -21

No files matched your search

+5 -1
View File
@@ -10,7 +10,11 @@ import (
)
func ParseS3ConfigurationFromBytes[T proto.Message](content []byte, config T) error {
if err := jsonpb.Unmarshal(content, config); err != nil {
options := &jsonpb.UnmarshalOptions{
DiscardUnknown: true,
AllowPartial: true,
}
if err := options.Unmarshal(content, config); err != nil {
return err
}
return nil