mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-14 19:38:22 +00:00
Fix Missing Resource Type ID
This commit is contained in:
parent
e90a19a41d
commit
f5654f36df
1 changed files with 5 additions and 4 deletions
|
@ -47,10 +47,11 @@ func CreateResourceV5(ctx context.Context, c *api.Client, folderParentID, name,
|
||||||
|
|
||||||
// Resource Metadata
|
// Resource Metadata
|
||||||
meta := api.ResourceMetadataTypeV5Default{
|
meta := api.ResourceMetadataTypeV5Default{
|
||||||
ObjectType: api.PASSBOLT_OBJECT_TYPE_RESOURCE_METADATA,
|
ObjectType: api.PASSBOLT_OBJECT_TYPE_RESOURCE_METADATA,
|
||||||
Name: name,
|
ResourceTypeID: rType.ID,
|
||||||
Username: username,
|
Name: name,
|
||||||
URIs: []string{uri},
|
Username: username,
|
||||||
|
URIs: []string{uri},
|
||||||
}
|
}
|
||||||
|
|
||||||
metaData, err := json.Marshal(&meta)
|
metaData, err := json.Marshal(&meta)
|
||||||
|
|
Loading…
Add table
Reference in a new issue