Skip to content

Commit

Permalink
Merge pull request #12778 from RakhithaRR/AI-8397
Browse files Browse the repository at this point in the history
Fix issues in restoring revision
  • Loading branch information
RakhithaRR authored Jan 27, 2025
2 parents e09fe17 + f172dee commit b132c54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public void restoreAPIRevision(Organization org, String apiUUID, String revision
GenericArtifact artifact = getAPIArtifact(apiUUID, registry);
artifact.setAttribute(APIConstants.API_OVERVIEW_STATUS, lifecycleStatus);
// Update with the modified artifact
artifactManager.updateGenericArtifact(apiArtifact);
artifactManager.updateGenericArtifact(artifact);
RegistryPersistenceUtil.clearResourcePermissions(apiPath, api.getId(),
((UserRegistry) registry).getTenantId());
RegistryPersistenceUtil.setResourcePermissions(api.getId().getProviderName(), api.getVisibility(),
Expand Down

0 comments on commit b132c54

Please sign in to comment.