feat: rm spread operation
This commit is contained in:
@@ -393,19 +393,15 @@ async function abortRun(runId: string, userId: string): Promise<boolean> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const currentLog = browser.interpreter.debugMessages.join('\n');
|
const currentLog = browser.interpreter.debugMessages.join('\n');
|
||||||
const serializableOutput = browser.interpreter.serializableData.reduce((reducedObject, item, index) => {
|
const serializableOutput: Record<string, any> = {};
|
||||||
return {
|
browser.interpreter.serializableData.forEach((item, index) => {
|
||||||
[`item-${index}`]: item,
|
serializableOutput[`item-${index}`] = item;
|
||||||
...reducedObject,
|
});
|
||||||
}
|
|
||||||
}, {});
|
|
||||||
|
|
||||||
const binaryOutput = browser.interpreter.binaryData.reduce((reducedObject, item, index) => {
|
const binaryOutput: Record<string, any> = {};
|
||||||
return {
|
browser.interpreter.binaryData.forEach((item, index) => {
|
||||||
[`item-${index}`]: item,
|
binaryOutput[`item-${index}`] = item;
|
||||||
...reducedObject,
|
});
|
||||||
}
|
|
||||||
}, {});
|
|
||||||
|
|
||||||
await run.update({
|
await run.update({
|
||||||
status: 'aborted',
|
status: 'aborted',
|
||||||
|
|||||||
Reference in New Issue
Block a user