mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-15 20:08:21 +00:00
Merge pull request #49 from passbolt/v5-fix-metadatakey
Some checks failed
Go / test (push) Has been cancelled
Some checks failed
Go / test (push) Has been cancelled
fix metadata private key fetching
This commit is contained in:
commit
cfd205f1bf
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
|
||||
}
|
||||
|
||||
keys, err := c.GetMetadataKeys(ctx, nil)
|
||||
keys, err := c.GetMetadataKeys(ctx, &api.GetMetadataKeysOptions{
|
||||
ContainMetadataPrivateKeys: true,
|
||||
})
|
||||
if err != nil {
|
||||
return "", "", nil, fmt.Errorf("Get Metadata Key: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue