~jan0sch/smederee
Showing details for patch d9c728b56e9152a68d83095792beda784c0ef838.
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala --- old-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala 2025-01-16 10:04:38.254018641 +0000 +++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala 2025-01-16 10:04:38.254018641 +0000 @@ -1091,8 +1091,10 @@ darcsConfig.repositoriesDirectory.toPath.resolve(user.name.toString).resolve(repo.name.toString) ) ) - _ <- repoDir.traverse(directory => deleteRepositoryDirectory(repositoryOwnerName)(directory)) - _ <- repo.traverse(repo => vcsMetadataRepo.deleteVcsRepository(repo)) + _ <- repoDir.traverse(directory => deleteRepositoryDirectory(repositoryOwnerName)(directory)) + _ <- repo.traverse(repo => + vcsMetadataRepo.deleteVcsRepository(repo) *> ticketsProjectRepo.deleteProject(repo.convert) + ) resp <- SeeOther(Location(redirectUri)) } yield resp } @@ -1177,6 +1179,7 @@ ) for { _ <- vcsMetadataRepo.updateVcsRepository(repoMetadata) + _ <- ticketsProjectRepo.updateProject(repoMetadata.convert) resp <- SeeOther(Location(repoUri)) } yield resp }