From fe477297c4507174ab5e950f351d8e9ad6939169 Mon Sep 17 00:00:00 2001 From: Nora Kauczor Date: Tue, 19 Nov 2024 17:01:22 +0100 Subject: [PATCH] remove souts --- .../main/java/org/example/backend/vocab/VocabController.java | 1 - .../src/main/java/org/example/backend/vocab/VocabService.java | 3 --- 2 files changed, 4 deletions(-) diff --git a/backend/src/main/java/org/example/backend/vocab/VocabController.java b/backend/src/main/java/org/example/backend/vocab/VocabController.java index 612aac44..6905acc0 100644 --- a/backend/src/main/java/org/example/backend/vocab/VocabController.java +++ b/backend/src/main/java/org/example/backend/vocab/VocabController.java @@ -36,7 +36,6 @@ public Vocab createAndActivateVocab(@RequestBody VocabDTOCreate vocabDTO, @Authe @PutMapping public Vocab editVocab(@RequestBody VocabDTOEdit editedVocab, @AuthenticationPrincipal OAuth2User user) throws IdNotFoundException, VocabIsNotEditableException { - System.out.println(editedVocab); return vocabService.editVocab(editedVocab, user.getName()); } diff --git a/backend/src/main/java/org/example/backend/vocab/VocabService.java b/backend/src/main/java/org/example/backend/vocab/VocabService.java index 609d8b80..e26ce208 100644 --- a/backend/src/main/java/org/example/backend/vocab/VocabService.java +++ b/backend/src/main/java/org/example/backend/vocab/VocabService.java @@ -70,9 +70,6 @@ public Vocab createAndActivateVocab(VocabDTOCreate vocabDTO, String userName) th } public Vocab editVocab(VocabDTOEdit vocabDTO, String userName) throws IdNotFoundException, VocabIsNotEditableException { - System.out.println("editVocab was called in VocabService"); - System.out.println("VocabDTO: "+vocabDTO); - System.out.println("userName: "+userName); Vocab vocab = vocabRepo.findById(vocabDTO.id()).orElseThrow(() -> new IdNotFoundException("ID not found.")); if (!vocab.getCreatedBy().equals(userName)) { throw new VocabIsNotEditableException("Method not allowed.");