From b9986be3871ce742eaba25f5d39851a717faaf0d Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:28:33 +0100 Subject: [PATCH] Fix: Creating dummy workspaces --- frontend/src/services/ProjectService.ts | 42 ++++++++++++------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/frontend/src/services/ProjectService.ts b/frontend/src/services/ProjectService.ts index b93aa0054f..e1d0e3fe80 100644 --- a/frontend/src/services/ProjectService.ts +++ b/frontend/src/services/ProjectService.ts @@ -1,26 +1,26 @@ import { initProjectHelper } from "@app/helpers/project"; class ProjectService { - /** - * Create and initialize a new project in organization with id [organizationId] - * Note: current user should be a member of the organization - * @param {Object} obj - * @param {String} obj.organizationId - id of organization - * @param {String} obj.projectName - name of new project - * @returns {Project} project - new project - */ - static async initProject({ - organizationId, - projectName - }: { - organizationId: string; - projectName: string - }) { - return initProjectHelper({ - organizationId, - projectName - }); - } + /** + * Create and initialize a new project in organization with id [organizationId] + * Note: current user should be a member of the organization + * @param {Object} obj + * @param {String} obj.organizationId - id of organization + * @param {String} obj.projectName - name of new project + * @returns {Project} project - new project + */ + static async initProject({ + organizationSlug, + projectName + }: { + organizationSlug: string; + projectName: string; + }) { + return initProjectHelper({ + organizationSlug, + projectName + }); + } } -export default ProjectService; \ No newline at end of file +export default ProjectService;