@ -231,7 +231,8 @@ export class ServerlessFunctionService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.serverlessService.delete(existingServerlessFunction);
|
// We don't need to await this
|
||||||
|
this.serverlessService.delete(existingServerlessFunction);
|
||||||
|
|
||||||
return existingServerlessFunction;
|
return existingServerlessFunction;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export class WorkflowDeleteManyPostQueryHook
|
|||||||
_objectName: string,
|
_objectName: string,
|
||||||
payload: WorkflowWorkspaceEntity[],
|
payload: WorkflowWorkspaceEntity[],
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||||
workflowIds: payload.map((workflow) => workflow.id),
|
workflowIds: payload.map((workflow) => workflow.id),
|
||||||
workspaceId: authContext.workspace.id,
|
workspaceId: authContext.workspace.id,
|
||||||
operation: 'delete',
|
operation: 'delete',
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export class WorkflowDeleteOnePostQueryHook
|
|||||||
_objectName: string,
|
_objectName: string,
|
||||||
payload: WorkflowWorkspaceEntity[],
|
payload: WorkflowWorkspaceEntity[],
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||||
workflowIds: payload.map((workflow) => workflow.id),
|
workflowIds: payload.map((workflow) => workflow.id),
|
||||||
workspaceId: authContext.workspace.id,
|
workspaceId: authContext.workspace.id,
|
||||||
operation: 'delete',
|
operation: 'delete',
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export class WorkflowRestoreManyPostQueryHook
|
|||||||
_objectName: string,
|
_objectName: string,
|
||||||
payload: WorkflowWorkspaceEntity[],
|
payload: WorkflowWorkspaceEntity[],
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||||
workflowIds: payload.map((workflow) => workflow.id),
|
workflowIds: payload.map((workflow) => workflow.id),
|
||||||
workspaceId: authContext.workspace.id,
|
workspaceId: authContext.workspace.id,
|
||||||
operation: 'restore',
|
operation: 'restore',
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export class WorkflowRestoreOnePostQueryHook
|
|||||||
_objectName: string,
|
_objectName: string,
|
||||||
payload: WorkflowWorkspaceEntity[],
|
payload: WorkflowWorkspaceEntity[],
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||||
workflowIds: payload.map((workflow) => workflow.id),
|
workflowIds: payload.map((workflow) => workflow.id),
|
||||||
workspaceId: authContext.workspace.id,
|
workspaceId: authContext.workspace.id,
|
||||||
operation: 'restore',
|
operation: 'restore',
|
||||||
|
|||||||
Reference in New Issue
Block a user