|
|
@@ -206,11 +206,12 @@ public class CollectionService {
|
|
|
.build());
|
|
|
}
|
|
|
|
|
|
- @Scheduled(fixedRate = 60000)
|
|
|
+ @Scheduled(fixedRate = 10000)
|
|
|
public void scheduleOnShelf() {
|
|
|
List<Collection> collections = collectionRepo.findByScheduleSaleTrueAndOnShelfFalseAndStartTimeBeforeAndDelFalse(LocalDateTime.now());
|
|
|
for (Collection collection : collections) {
|
|
|
collection.setOnShelf(true);
|
|
|
+ collection.setSalable(true);
|
|
|
}
|
|
|
collectionRepo.saveAll(collections);
|
|
|
}
|