値変更イベント非同期処理対応
This commit is contained in:
@@ -42,7 +42,12 @@ $(function (){
|
|||||||
const flow=ActionFlow.fromJSON(flowinfo.content);
|
const flow=ActionFlow.fromJSON(flowinfo.content);
|
||||||
if(flow!==undefined){
|
if(flow!==undefined){
|
||||||
const process = new ActionProcess(event.type,flow,event);
|
const process = new ActionProcess(event.type,flow,event);
|
||||||
process.exec();
|
process.exec().then((res)=>{
|
||||||
|
const record = event.record;
|
||||||
|
kintone.app.record.set({record});
|
||||||
|
}).catch((err)=>{
|
||||||
|
console.error(err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return event;
|
return event;
|
||||||
});
|
});
|
||||||
@@ -58,7 +63,7 @@ $(function (){
|
|||||||
await process.exec();
|
await process.exec();
|
||||||
}
|
}
|
||||||
const record = event.record;
|
const record = event.record;
|
||||||
kintone.app.record.set({record})
|
kintone.app.record.set({record});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user