mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
✨ Add possibility to retry with currently saved workflow
This commit is contained in:
@@ -263,8 +263,14 @@ export const restApi = Vue.extend({
|
||||
},
|
||||
|
||||
// Returns the execution with the given name
|
||||
retryExecution: (id: string): Promise<boolean> => {
|
||||
return self.restApi().makeRestApiRequest('POST', `/executions/${id}/retry`);
|
||||
retryExecution: (id: string, loadWorkflow?: boolean): Promise<boolean> => {
|
||||
let sendData;
|
||||
if (loadWorkflow === true) {
|
||||
sendData = {
|
||||
loadWorkflow: true,
|
||||
};
|
||||
}
|
||||
return self.restApi().makeRestApiRequest('POST', `/executions/${id}/retry`, sendData);
|
||||
},
|
||||
|
||||
// Returns all saved executions
|
||||
|
||||
Reference in New Issue
Block a user