Leo/Backend #82
@ -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()));
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user