mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 18:26:04 +00:00
Fix: Creating dummy workspaces
This commit is contained in:
@@ -1,26 +1,26 @@
|
|||||||
import { initProjectHelper } from "@app/helpers/project";
|
import { initProjectHelper } from "@app/helpers/project";
|
||||||
|
|
||||||
class ProjectService {
|
class ProjectService {
|
||||||
/**
|
/**
|
||||||
* Create and initialize a new project in organization with id [organizationId]
|
* Create and initialize a new project in organization with id [organizationId]
|
||||||
* Note: current user should be a member of the organization
|
* Note: current user should be a member of the organization
|
||||||
* @param {Object} obj
|
* @param {Object} obj
|
||||||
* @param {String} obj.organizationId - id of organization
|
* @param {String} obj.organizationId - id of organization
|
||||||
* @param {String} obj.projectName - name of new project
|
* @param {String} obj.projectName - name of new project
|
||||||
* @returns {Project} project - new project
|
* @returns {Project} project - new project
|
||||||
*/
|
*/
|
||||||
static async initProject({
|
static async initProject({
|
||||||
organizationId,
|
organizationSlug,
|
||||||
projectName
|
projectName
|
||||||
}: {
|
}: {
|
||||||
organizationId: string;
|
organizationSlug: string;
|
||||||
projectName: string
|
projectName: string;
|
||||||
}) {
|
}) {
|
||||||
return initProjectHelper({
|
return initProjectHelper({
|
||||||
organizationId,
|
organizationSlug,
|
||||||
projectName
|
projectName
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ProjectService;
|
export default ProjectService;
|
||||||
|
|||||||
Reference in New Issue
Block a user