@ -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;
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ export class WorkflowDeleteManyPostQueryHook
|
||||
_objectName: string,
|
||||
payload: WorkflowWorkspaceEntity[],
|
||||
): Promise<void> {
|
||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
workflowIds: payload.map((workflow) => workflow.id),
|
||||
workspaceId: authContext.workspace.id,
|
||||
operation: 'delete',
|
||||
|
||||
@ -22,7 +22,7 @@ export class WorkflowDeleteOnePostQueryHook
|
||||
_objectName: string,
|
||||
payload: WorkflowWorkspaceEntity[],
|
||||
): Promise<void> {
|
||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
workflowIds: payload.map((workflow) => workflow.id),
|
||||
workspaceId: authContext.workspace.id,
|
||||
operation: 'delete',
|
||||
|
||||
@ -22,7 +22,7 @@ export class WorkflowRestoreManyPostQueryHook
|
||||
_objectName: string,
|
||||
payload: WorkflowWorkspaceEntity[],
|
||||
): Promise<void> {
|
||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
workflowIds: payload.map((workflow) => workflow.id),
|
||||
workspaceId: authContext.workspace.id,
|
||||
operation: 'restore',
|
||||
|
||||
@ -22,7 +22,7 @@ export class WorkflowRestoreOnePostQueryHook
|
||||
_objectName: string,
|
||||
payload: WorkflowWorkspaceEntity[],
|
||||
): Promise<void> {
|
||||
this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
await this.workflowCommonWorkspaceService.handleWorkflowSubEntities({
|
||||
workflowIds: payload.map((workflow) => workflow.id),
|
||||
workspaceId: authContext.workspace.id,
|
||||
operation: 'restore',
|
||||
|
||||
Reference in New Issue
Block a user