From 2ab3c9ca957b1ec578d2fec8dd0d3afbb94416dd Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Tue, 25 Aug 2020 18:11:56 +0800 Subject: [PATCH] fix(api): do not return empty language --- .../org/gotson/komga/infrastructure/jooq/ReferentialDao.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/ReferentialDao.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/ReferentialDao.kt index 3c756613d..fc616e0f4 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/ReferentialDao.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/jooq/ReferentialDao.kt @@ -44,6 +44,7 @@ class ReferentialDao( override fun findAllLanguages(): Set = dsl.selectDistinct(sd.LANGUAGE) .from(sd) + .where(sd.LANGUAGE.ne("")) .orderBy(sd.LANGUAGE) .fetchSet(sd.LANGUAGE)