Fixed JSON return value

This commit is contained in:
antoniocarlon 2018-09-11 11:19:12 +02:00
parent b6d37c6773
commit c5b6c27045

View File

@ -27,7 +27,7 @@ BEGIN
ELSIF is_organization = TRUE THEN
SELECT cartodb.cdb_conf_getconf('user_config')->>'entity_name' INTO organization_name;
END IF;
result.username = apikey_config->'username';
result.username = apikey_config->>'username';
result.organization_name = organization_name;
result.apikey_permissions = apikey_config->'permissions';
RETURN result;