Skip to content

Commit

Permalink
fix server
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrise2 committed Mar 13, 2024
1 parent 4218198 commit 621b594
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ fun Routing.uploadLogFile() {
val logFileType = parameters["logFileType"] ?: DEFAULT_FOLDER
val researchId = parameters.getOrFail<Int>("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) {
Expand Down

0 comments on commit 621b594

Please sign in to comment.