Unverified Commit 08f1b037 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

take correct substring of record id


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent e73e6ef2
Pipeline #20861 failed with stages
in 2 minutes and 28 seconds
...@@ -284,7 +284,7 @@ class KafkaTopology(private val settings: SettingsLoader) { ...@@ -284,7 +284,7 @@ class KafkaTopology(private val settings: SettingsLoader) {
recordResource.uri.split( recordResource.uri.split(
"/" "/"
).last() ).last()
.substring(7) .substring(8)
}.jpg" }.jpg"
val pathOnSftpServer = previewImageHandler.moveFileToSFTP(pathToLocalFile, destPath) val pathOnSftpServer = previewImageHandler.moveFileToSFTP(pathToLocalFile, destPath)
if (pathOnSftpServer != null) { if (pathOnSftpServer != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment