Repalced deprecated emthod with the new one

This commit is contained in:
Luca Frosini 2024-11-27 12:39:06 +01:00
parent fc57547e4c
commit d4dc4a3f40
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class QueryTemplateImpl extends EntityElementImpl implements QueryTemplat
for(TemplateVariable tv : templateVariables.values()) {
Object defaultValue = tv.getDefaultValue();
JsonNode jsonNode = ElementMapper.getObjectMapper().valueToTree(defaultValue);
objectNode.put(tv.getName(), jsonNode);
objectNode.set(tv.getName(), jsonNode);
// if(defaultValue instanceof Integer) {
// objectNode.put(tv.getName(), (Integer) defaultValue);