fix(api): do not return empty language

This commit is contained in:
Gauthier Roebroeck 2020-08-25 18:11:56 +08:00
parent 1929061393
commit 2ab3c9ca95

View file

@ -44,6 +44,7 @@ class ReferentialDao(
override fun findAllLanguages(): Set<String> =
dsl.selectDistinct(sd.LANGUAGE)
.from(sd)
.where(sd.LANGUAGE.ne(""))
.orderBy(sd.LANGUAGE)
.fetchSet(sd.LANGUAGE)