From 1a0664541ed29af2929b8cf71597a98c9a7da946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Wed, 26 Jun 2024 15:57:03 +0200 Subject: [PATCH] chore: fix ktlint --- .../development/testDataBuilder/builders/ProjectBuilder.kt | 1 + .../translationViewBuilder/TranslationViewDataProvider.kt | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/data/src/main/kotlin/io/tolgee/development/testDataBuilder/builders/ProjectBuilder.kt b/backend/data/src/main/kotlin/io/tolgee/development/testDataBuilder/builders/ProjectBuilder.kt index 5ee284cef7..0679f494fc 100644 --- a/backend/data/src/main/kotlin/io/tolgee/development/testDataBuilder/builders/ProjectBuilder.kt +++ b/backend/data/src/main/kotlin/io/tolgee/development/testDataBuilder/builders/ProjectBuilder.kt @@ -175,6 +175,7 @@ class ProjectBuilder( fun addWebhookConfig(ft: FT) = addOperation(data.webhookConfigs, ft) fun addSlackConfig(ft: FT) = addOperation(data.slackConfigs, ft) + fun addBatchJob(ft: FT) = addOperation(data.batchJobs, ft) fun setImportSettings(ft: FT) { diff --git a/backend/data/src/main/kotlin/io/tolgee/service/queryBuilders/translationViewBuilder/TranslationViewDataProvider.kt b/backend/data/src/main/kotlin/io/tolgee/service/queryBuilders/translationViewBuilder/TranslationViewDataProvider.kt index 83946f32fb..dfbad6a70f 100644 --- a/backend/data/src/main/kotlin/io/tolgee/service/queryBuilders/translationViewBuilder/TranslationViewDataProvider.kt +++ b/backend/data/src/main/kotlin/io/tolgee/service/queryBuilders/translationViewBuilder/TranslationViewDataProvider.kt @@ -49,7 +49,7 @@ class TranslationViewDataProvider( } return PageImpl(views, pageable, count) } - + private fun createFailedKeysInJobTempTable(filterFailedKeysOfJob: Long?) { if (filterFailedKeysOfJob == null) { return @@ -73,7 +73,7 @@ class TranslationViewDataProvider( ) SELECT DISTINCT (target -> 'keyId')\:\:bigint AS key_id FROM unsuccessful_targets; - """ + """, ) .setParameter("batchJobId", filterFailedKeysOfJob) .executeUpdate() @@ -84,7 +84,6 @@ class TranslationViewDataProvider( .executeUpdate() } - fun getSelectAllKeys( projectId: Long, languages: Set,