mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Mindee: Add currency to simplified response (#1014)
This commit is contained in:
@@ -74,6 +74,11 @@ export function cleanData(predictions: IDataObject[]) {
|
||||
amount: (data as IDataObject[])[0].amount,
|
||||
rate: (data as IDataObject[])[0].rate,
|
||||
};
|
||||
} else if (key === 'locale') {
|
||||
//@ts-ignore
|
||||
newData['currency'] = data.currency;
|
||||
//@ts-ignore
|
||||
newData['locale'] = data.value;
|
||||
} else {
|
||||
//@ts-ignore
|
||||
newData[key] = data.value || data.name || data.raw || data.degrees || data.amount || data.iban;
|
||||
|
||||
Reference in New Issue
Block a user