mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
fix: Prevent removing manual executions when setting says to save (#6300)
This commit is contained in:
parent
d5c7e6f2cf
commit
55b755cb44
|
@ -610,8 +610,7 @@ function hookFunctionsSave(parentProcessMode?: string): IWorkflowExecuteHooks {
|
||||||
(workflowDidSucceed && saveDataSuccessExecution === 'none') ||
|
(workflowDidSucceed && saveDataSuccessExecution === 'none') ||
|
||||||
(!workflowDidSucceed && saveDataErrorExecution === 'none')
|
(!workflowDidSucceed && saveDataErrorExecution === 'none')
|
||||||
) {
|
) {
|
||||||
if (!fullRunData.waitTill) {
|
if (!fullRunData.waitTill && !isManualMode) {
|
||||||
if (!isManualMode) {
|
|
||||||
executeErrorWorkflow(
|
executeErrorWorkflow(
|
||||||
this.workflowData,
|
this.workflowData,
|
||||||
fullRunData,
|
fullRunData,
|
||||||
|
@ -619,7 +618,6 @@ function hookFunctionsSave(parentProcessMode?: string): IWorkflowExecuteHooks {
|
||||||
this.executionId,
|
this.executionId,
|
||||||
this.retryOf,
|
this.retryOf,
|
||||||
);
|
);
|
||||||
}
|
|
||||||
// Data is always saved, so we remove from database
|
// Data is always saved, so we remove from database
|
||||||
await Db.collections.Execution.delete(this.executionId);
|
await Db.collections.Execution.delete(this.executionId);
|
||||||
await BinaryDataManager.getInstance().markDataForDeletionByExecutionId(
|
await BinaryDataManager.getInstance().markDataForDeletionByExecutionId(
|
||||||
|
|
Loading…
Reference in a new issue