mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
add2010
This commit is contained in:
parent
bf01944f0d
commit
cc52ed596e
|
@ -1038,27 +1038,16 @@ export class Mattermost implements INodeType {
|
||||||
for (const att of arr) {
|
for (const att of arr) {
|
||||||
if (Array.isArray(att.actions))
|
if (Array.isArray(att.actions))
|
||||||
for (const attaction of att.actions) {
|
for (const attaction of att.actions) {
|
||||||
//console.log(attaction);
|
|
||||||
if (attaction.integration.item !== undefined) {
|
if (attaction.integration.item !== undefined) {
|
||||||
//console.log('integration items');
|
|
||||||
attaction.integration = attaction.integration.item;
|
attaction.integration = attaction.integration.item;
|
||||||
var tmpintegration = {};
|
if (Array.isArray(attaction.integration.context.property)) {
|
||||||
for (const attactioninteg of attaction.integration) {
|
|
||||||
//console.log(attactioninteg);
|
|
||||||
if (attactioninteg.context.property !== undefined) {
|
|
||||||
//console.log('connnnnn');
|
|
||||||
var tmpcontex = {};
|
var tmpcontex = {};
|
||||||
for (const attactionintegprop of attactioninteg.context.property ) {
|
for (const attactionintegprop of attaction.integration.context.property ) {
|
||||||
// console.log(attactionintegprop);
|
|
||||||
Object.assign(tmpcontex, { [attactionintegprop.name] : attactionintegprop.value } );
|
Object.assign(tmpcontex, { [attactionintegprop.name] : attactionintegprop.value } );
|
||||||
}
|
}
|
||||||
delete attactioninteg.context ;
|
delete attaction.integration.context;
|
||||||
attactioninteg.context = tmpcontex ;
|
attaction.integration.context = tmpcontex;
|
||||||
}
|
}
|
||||||
Object.assign(tmpintegration, attactioninteg);
|
|
||||||
}
|
|
||||||
delete attaction.integration;
|
|
||||||
attaction.integration=tmpintegration;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue