From dcf5b26b05ca91b61bab521142b9e135d8a50a5c Mon Sep 17 00:00:00 2001 From: LeoMoulin Date: Sat, 9 Mar 2024 19:33:10 +0100 Subject: [PATCH] Ajusting small things --- .../main/java/ovh/herisson/Clyde/EndPoints/MockController.java | 3 --- .../main/java/ovh/herisson/Clyde/Services/TokenService.java | 1 - 2 files changed, 4 deletions(-) diff --git a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/MockController.java b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/MockController.java index 89e9ada..79e482d 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/EndPoints/MockController.java +++ b/backend/src/main/java/ovh/herisson/Clyde/EndPoints/MockController.java @@ -53,9 +53,6 @@ public class MockController { userRepo.saveAll(mockUsers); - Calendar c = Calendar.getInstance(); - c.setTime(new Date()); - for (User user: mockUsers){ tokenService.saveToken(new Token(user,user.getPassword(), new Date())); } diff --git a/backend/src/main/java/ovh/herisson/Clyde/Services/TokenService.java b/backend/src/main/java/ovh/herisson/Clyde/Services/TokenService.java index 029661d..9dd337b 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Services/TokenService.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Services/TokenService.java @@ -51,7 +51,6 @@ public class TokenService { //Tous les jours a minuit @Scheduled(cron = "0 0 0 * * ?") public void autoDeleteToken() { - System.out.println("triggered"); for (Token t: tokenRepo.findAll()){ Calendar cal = Calendar.getInstance();