Fix missing language field. (#2174)
This commit is contained in:
parent
9cda28f054
commit
18ed80bd95
|
|
@ -197,6 +197,8 @@ public class MetadataQueryEsDAO extends EsDAO implements IMetadataQueryDAO {
|
|||
JsonObject properties = GSON.fromJson(propertiesString, JsonObject.class);
|
||||
if (properties.has(LANGUAGE)) {
|
||||
serviceInstance.setLanguage(LanguageTrans.INSTANCE.value(properties.get(LANGUAGE).getAsString()));
|
||||
} else {
|
||||
serviceInstance.setLanguage(Language.UNKNOWN);
|
||||
}
|
||||
|
||||
if (properties.has(OS_NAME)) {
|
||||
|
|
|
|||
|
|
@ -222,6 +222,8 @@ public class H2MetadataQueryDAO implements IMetadataQueryDAO {
|
|||
JsonObject properties = GSON.fromJson(propertiesString, JsonObject.class);
|
||||
if (properties.has(LANGUAGE)) {
|
||||
serviceInstance.setLanguage(LanguageTrans.INSTANCE.value(properties.get(LANGUAGE).getAsString()));
|
||||
} else {
|
||||
serviceInstance.setLanguage(Language.UNKNOWN);
|
||||
}
|
||||
|
||||
if (properties.has(OS_NAME)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue