Files
n8n-enterprise-unlocked/packages/cli/src/executions/executions.service.ee.ts
कारतोफ्फेलस्क्रिप्ट™ 845f0f9d20 refactor(core): Switch over all user-management routes to use decorators (#5115)
2023-01-27 11:19:47 +01:00

14 lines
431 B
TypeScript

import { User } from '@db/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<string[]> {
// Get all workflows
return getSharedWorkflowIds(user);
}
}