Files
n8n-enterprise-unlocked/packages/cli/src/executions/executions.service.ee.ts
T
freya ddf787c087 fix(core): Ensure executions list is properly filtered for all users (#4765)
Also updates executions API to have EE version
2022-11-30 13:00:28 +00:00

14 lines
439 B
TypeScript

import { User } from '@/databases/entities/User';
import { getSharedWorkflowIds } from '@/WorkflowHelpers';
import { ExecutionsService } from './executions.service';
export class EEExecutionsService extends ExecutionsService {
/**
* Function to get the workflow Ids for a User regardless of role
*/
static async getWorkflowIdsForUser(user: User): Promise<number[]> {
// Get all workflows
return getSharedWorkflowIds(user);
}
}