Skip to content

Commit

Permalink
PIN-4414 Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
nttdata-rtorsoli committed Jan 17, 2024
1 parent fe3b7c0 commit eea3255
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,10 @@ final case class ProcessApiServiceImpl(
deprecateDescriptor(oldDescriptorId.toString, eServiceId.toString).recoverWith(error =>
resetDescriptorToDraft(eServiceId.toString, descriptorId.toString).flatMap(_ => Future.failed(error))
)
case None => catalogManagementService.archiveDescriptor(eServiceId.toString, oldDescriptorId.toString)
case None =>
catalogManagementService.archiveDescriptor(eServiceId.toString, oldDescriptorId.toString) recoverWith (error =>
resetDescriptorToDraft(eServiceId.toString, descriptorId.toString).flatMap(_ => Future.failed(error))
)
}
} yield ()

Expand Down

0 comments on commit eea3255

Please sign in to comment.