Ajusting small things
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m1s
Build and test backend / Test-backend (pull_request) Successful in 2m1s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 23s

This commit is contained in:
LeoMoulin 2024-03-09 19:33:10 +01:00
parent 94d86ef252
commit dcf5b26b05
2 changed files with 0 additions and 4 deletions

View File

@ -53,9 +53,6 @@ public class MockController {
userRepo.saveAll(mockUsers); userRepo.saveAll(mockUsers);
Calendar c = Calendar.getInstance();
c.setTime(new Date());
for (User user: mockUsers){ for (User user: mockUsers){
tokenService.saveToken(new Token(user,user.getPassword(), new Date())); tokenService.saveToken(new Token(user,user.getPassword(), new Date()));
} }

View File

@ -51,7 +51,6 @@ public class TokenService {
//Tous les jours a minuit //Tous les jours a minuit
@Scheduled(cron = "0 0 0 * * ?") @Scheduled(cron = "0 0 0 * * ?")
public void autoDeleteToken() { public void autoDeleteToken() {
System.out.println("triggered");
for (Token t: tokenRepo.findAll()){ for (Token t: tokenRepo.findAll()){
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();