From 828304fccb9bd4134fbe54d4b257819b4c6efcbf Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Tue, 9 Oct 2018 09:47:19 +0100 Subject: [PATCH] Removed prints. --- .../main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt index 8433a90..aea1cf3 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt @@ -57,7 +57,6 @@ class Controller { @PostMapping("/observation") fun addObservation(@Valid @RequestBody newObservation: NewObservation): Long? { - println(newObservation) val site = siteRepository.findById(newObservation.site) val tutors = tutorRepository.findAllById(newObservation.tutors).toSet() if(!site.isPresent) return null @@ -85,13 +84,11 @@ class Controller { it.observations.add(observation) tutorRepository.save(it) } - println(observation) return observation.id } @PostMapping("/observations") fun getObservations(@Valid @RequestBody observationsRequest: ObservationsRequest): List { - print(observationsRequest) if (observationsRequest.tutor != null) { return tutorRepository.findById(observationsRequest.tutor).map { when {