mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Support create, read, update, delete projects in Public API (#10269)
This commit is contained in:
@@ -34,6 +34,10 @@ export const linkUserToProject = async (user: User, project: Project, role: Proj
|
||||
);
|
||||
};
|
||||
|
||||
export async function getProjectByNameOrFail(name: string) {
|
||||
return await Container.get(ProjectRepository).findOneOrFail({ where: { name } });
|
||||
}
|
||||
|
||||
export const getPersonalProject = async (user: User): Promise<Project> => {
|
||||
return await Container.get(ProjectRepository).findOneOrFail({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user