mirror of
https://github.com/Infisical/infisical.git
synced 2026-05-02 03:02:03 -04:00
Fix: Creating dummy workspaces
This commit is contained in:
@@ -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;
|
||||
export default ProjectService;
|
||||
|
||||
Reference in New Issue
Block a user