mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
14 lines
431 B
TypeScript
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);
|
|
}
|
|
}
|