Fix: Creating dummy workspaces

This commit is contained in:
Daniel Hougaard
2024-03-17 18:49:29 +01:00
parent 65776b7ab9
commit 9b1a15331a
3 changed files with 7 additions and 5 deletions
@@ -191,9 +191,10 @@ export default function UserInfoStep({
const userOrgs = await fetchOrganizations();
const orgSlug = userOrgs[0]?.slug;
const orgId = userOrgs[0]?.id;
const project = await ProjectService.initProject({
organizationId: orgId,
organizationSlug: orgSlug,
projectName: "Example Project"
});
+3 -3
View File
@@ -78,17 +78,17 @@ const secretsToBeAdded = [
* @returns {Project} project - new project
*/
const initProjectHelper = async ({
organizationId,
organizationSlug,
projectName
}: {
organizationId: string;
organizationSlug: string;
projectName: string;
}) => {
// create new project
const {
data: { project }
} = await createWorkspace({
organizationId,
organizationSlug,
projectName
});
@@ -188,8 +188,9 @@ export const UserInfoSSOStep = ({
const userOrgs = await fetchOrganizations();
const orgId = userOrgs[0]?.id;
const orgSlug = userOrgs[0]?.slug;
const project = await ProjectService.initProject({
organizationId: orgId,
organizationSlug: orgSlug,
projectName: "Example Project"
});