From 621b594fd8143b9ade6dd06dc6b5103337125533 Mon Sep 17 00:00:00 2001 From: mikrise2 Date: Wed, 13 Mar 2024 17:31:19 +0100 Subject: [PATCH] fix server --- .../research/tasktracker/plugins/requests/FileRequests.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/requests/FileRequests.kt b/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/requests/FileRequests.kt index 7da1ffc..99bb71d 100644 --- a/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/requests/FileRequests.kt +++ b/ij-server/src/main/kotlin/org/jetbrains/research/tasktracker/plugins/requests/FileRequests.kt @@ -20,10 +20,8 @@ fun Routing.uploadLogFile() { val logFileType = parameters["logFileType"] ?: DEFAULT_FOLDER val researchId = parameters.getOrFail("id") val logFile = createLogFile(logFileType, researchId) + logFile.parseLogFile(logFileType, researchId) call.respond(HttpStatusCode.OK) - launch { - logFile.parseLogFile(logFileType, researchId) - } } catch (e: MissingRequestParameterException) { call.respond(HttpStatusCode.BadRequest, e.localizedMessage) } catch (e: ParameterConversionException) {