Merge pull request 'refactor: update sorting criteria for manga import jobs and enable resilience features' (#41) from refactor-architecture into main

Reviewed-on: #41
This commit is contained in:
rov 2026-03-28 17:34:53 -03:00
commit 695e04c670
2 changed files with 3 additions and 3 deletions

View File

@ -4,12 +4,14 @@ import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.resilience.annotation.EnableResilientMethods;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
@EnableFeignClients
@EnableScheduling
@EnableRabbit
@EnableResilientMethods
public class MangamochiApplication {
public static void main(String[] args) {

View File

@ -223,9 +223,7 @@ public class ContentImportService {
var sortedPageable =
PageRequest.of(
pageable.getPageNumber(),
pageable.getPageSize(),
Sort.by(Sort.Direction.DESC, "updatedAt"));
pageable.getPageNumber(), pageable.getPageSize(), Sort.by(Sort.Direction.DESC, "id"));
var page = mangaImportJobRepository.findAll(spec, sortedPageable).map(MangaImportJobDTO::from);