mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-15 20:08:21 +00:00
fix metadata private key fetching
This commit is contained in:
parent
7c15f80c7e
commit
0c5a7aafc7
1 changed files with 3 additions and 1 deletions
|
@ -32,7 +32,9 @@ func GetMetadataKey(ctx context.Context, c *api.Client, personal bool) (string,
|
||||||
return me.GPGKey.ID, api.MetadataKeyTypeUserKey, key, nil
|
return me.GPGKey.ID, api.MetadataKeyTypeUserKey, key, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
keys, err := c.GetMetadataKeys(ctx, nil)
|
keys, err := c.GetMetadataKeys(ctx, &api.GetMetadataKeysOptions{
|
||||||
|
ContainMetadataPrivateKeys: true,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", nil, fmt.Errorf("Get Metadata Key: %w", err)
|
return "", "", nil, fmt.Errorf("Get Metadata Key: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue