Unverified Commit 18ed80bd authored by 吴晟's avatar 吴晟 Committed by GitHub
Browse files

Fix missing language field. (#2174)

parent 9cda28f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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)) {
+2 −0
Original line number Diff line number Diff line
@@ -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)) {