feat: update cat
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 9m50s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 9m50s
This commit is contained in:
@@ -467,11 +467,10 @@ public class MembreService {
|
||||
.map(__ -> meData);
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 20 16 * * ?")
|
||||
Uni<Void> everySecond() { // TODO change this
|
||||
@Scheduled(cron = "0 0 1 1 9 ?")
|
||||
Uni<Void> everySeason() {
|
||||
return repository.list("birth_date IS NOT NULL")
|
||||
.chain(l -> Uni.join().all(l.stream().map(m -> {
|
||||
System.out.println("Cat update for " + m.getObjectName());
|
||||
m.setCategorie(Utils.getCategoryFormBirthDate(m.getBirth_date(), new Date()));
|
||||
return Panache.withTransaction(() -> repository.persist(m));
|
||||
}).toList()).andCollectFailures())
|
||||
|
||||
Reference in New Issue
Block a user