1
This commit is contained in:
@@ -13,15 +13,18 @@ export async function execute_action_and_record(params) {
|
||||
let error_message = null;
|
||||
|
||||
try {
|
||||
const result = await invoke_extension_action(action_name, action_payload || {});
|
||||
|
||||
|
||||
console.log( 'invoke_extension_action-start', action_name, action_payload );
|
||||
const res_invoke = await invoke_extension_action(action_name, action_payload || {});
|
||||
console.log( 'invoke_extension_action-end', action_name, result );
|
||||
ok = true;
|
||||
result_payload = safe_json_stringify(result);
|
||||
result_payload = safe_json_stringify(res_invoke);
|
||||
|
||||
// 按 stage 自动入库(不影响原始 run_record 记录)
|
||||
await persist_amazon_result(result);
|
||||
await persist_amazon_result(res_invoke.result);
|
||||
|
||||
return result;
|
||||
return res_invoke;
|
||||
} catch (err) {
|
||||
ok = false;
|
||||
error_message = (err && err.message) || String(err);
|
||||
|
||||
Reference in New Issue
Block a user