🐛 Fix small bug in HumanticAI-Node

This commit is contained in:
Jan Oberhauser 2020-11-18 23:59:36 +01:00
parent 09547e9153
commit eafbe424b9

View file

@ -109,10 +109,14 @@ export class HumanticAi implements INodeType {
}, },
}, },
); );
responseData = responseData.data;
} else { } else {
responseData = await humanticAiApiRequest.call(this, 'GET', `/user-profile/create`, {}, qs); responseData = await humanticAiApiRequest.call(this, 'GET', `/user-profile/create`, {}, qs);
}
if (responseData.data !== undefined) {
responseData = responseData.data; responseData = responseData.data;
} else {
delete responseData.usage_stats;
} }
} }
if (operation === 'get') { if (operation === 'get') {