Skip to content

Commit

Permalink
cosmos: updating to account for the constant name change
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Jan 17, 2024
1 parent 49d7245 commit e3d7590
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (r CosmosDbMongoRoleDefinitionResource) Create() sdk.ResourceFunc {
return metadata.ResourceRequiresImport(r.ResourceType(), id)
}

roleType := mongorbacs.MongoRoleDefinitionTypeOne
roleType := mongorbacs.MongoRoleDefinitionTypeCustomRole
parameters := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{
Properties: &mongorbacs.MongoRoleDefinitionResource{
DatabaseName: pointer.To(databaseId.Name),
Expand Down Expand Up @@ -206,7 +206,7 @@ func (r CosmosDbMongoRoleDefinitionResource) Update() sdk.ResourceFunc {
return err
}

roleType := mongorbacs.MongoRoleDefinitionTypeOne
roleType := mongorbacs.MongoRoleDefinitionTypeCustomRole
parameters := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{
Properties: &mongorbacs.MongoRoleDefinitionResource{
DatabaseName: pointer.To(databaseId.Name),
Expand Down

0 comments on commit e3d7590

Please sign in to comment.