Skip to content

Commit

Permalink
fix: Use shortname for project export (DEV-3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
siers committed Apr 4, 2024
1 parent d616d68 commit 12819c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ final case class ProjectExportServiceLive(
path <- zipped.toAbsolutePath
fileSize <- Files.size(zipped)
_ <- ZIO.logInfo(s"Exported project $shortcode to $path ($fileSize bytes)")
} yield ProjectExportInfoResponse(shortcode, path.toString)
} yield ProjectExportInfoResponse(project.shortname.value, path.toString)

Check warning on line 202 in webapi/src/main/scala/org/knora/webapi/slice/admin/domain/service/ProjectExportService.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/slice/admin/domain/service/ProjectExportService.scala#L202

Added line #L202 was not covered by tests
}

private def exportProjectAssets(project: KnoraProject, tempDir: Path): ZIO[Scope, Throwable, Path] = {
Expand Down

0 comments on commit 12819c1

Please sign in to comment.