From e4b31680f817d81f647cd1cbb4ee7529189c29b4 Mon Sep 17 00:00:00 2001 From: Bocute Date: Tue, 19 May 2026 15:40:14 -0300 Subject: [PATCH 1/3] fix: pagination logic has been fixed --- .../br/all/infrastructure/study/StudyReviewRepositoryImpl.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/review/src/main/kotlin/br/all/infrastructure/study/StudyReviewRepositoryImpl.kt b/review/src/main/kotlin/br/all/infrastructure/study/StudyReviewRepositoryImpl.kt index 5eda830d..a0aaf45d 100644 --- a/review/src/main/kotlin/br/all/infrastructure/study/StudyReviewRepositoryImpl.kt +++ b/review/src/main/kotlin/br/all/infrastructure/study/StudyReviewRepositoryImpl.kt @@ -116,9 +116,9 @@ open class StudyReviewRepositoryImpl(private val repository: MongoStudyReviewRe } val query = Query().addCriteria(Criteria().andOperator(*criteria.toTypedArray())) - query.with(pageable) - val total = mongoTemplate.count(query, StudyReviewDocument::class.java) + + query.with(pageable) val documents = mongoTemplate.find(query, StudyReviewDocument::class.java) val content = documents.map { it.toDto() } From 3445dbd503948baad890a065ebbe6e23272350cd Mon Sep 17 00:00:00 2001 From: Bocute Date: Tue, 19 May 2026 15:41:33 -0300 Subject: [PATCH 2/3] fix: corrected token timing --- web/src/main/resources/application.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main/resources/application.yaml b/web/src/main/resources/application.yaml index 6e9a2abe..bf95a6ee 100644 --- a/web/src/main/resources/application.yaml +++ b/web/src/main/resources/application.yaml @@ -24,5 +24,5 @@ spring: jwt: key: "dasdasdadadasdasdadadasdasdadadasdasdadadasdasdada" - access-token-expiration: 300000 - refresh-token-expiration: 3600000 \ No newline at end of file + access-token-expiration: 3600000 + refresh-token-expiration: 300000 \ No newline at end of file From 96f2a75ad5b8b095849cf54ff6a6a6d38cc1b622 Mon Sep 17 00:00:00 2001 From: Bocute Date: Tue, 19 May 2026 16:06:24 -0300 Subject: [PATCH 3/3] Revert "fix: corrected token timing" This reverts commit 3445dbd503948baad890a065ebbe6e23272350cd. --- web/src/main/resources/application.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/main/resources/application.yaml b/web/src/main/resources/application.yaml index bf95a6ee..6e9a2abe 100644 --- a/web/src/main/resources/application.yaml +++ b/web/src/main/resources/application.yaml @@ -24,5 +24,5 @@ spring: jwt: key: "dasdasdadadasdasdadadasdasdadadasdasdadadasdasdada" - access-token-expiration: 3600000 - refresh-token-expiration: 300000 \ No newline at end of file + access-token-expiration: 300000 + refresh-token-expiration: 3600000 \ No newline at end of file