mobbdev 1.0.84 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8631,9 +8631,6 @@ var GQLClient = class {
|
|
|
8631
8631
|
}
|
|
8632
8632
|
const { organization: org } = organizationToOrganizationRole;
|
|
8633
8633
|
const project = projectName ? org?.projects.find((project2) => project2.name === projectName) ?? null : org?.projects[0];
|
|
8634
|
-
if (!project?.id) {
|
|
8635
|
-
throw new Error("Project not found");
|
|
8636
|
-
}
|
|
8637
8634
|
let projectId = project?.id;
|
|
8638
8635
|
if (!projectId) {
|
|
8639
8636
|
const createdProject = await this._clientSdk.CreateProject({
|
|
@@ -8642,6 +8639,9 @@ var GQLClient = class {
|
|
|
8642
8639
|
});
|
|
8643
8640
|
projectId = createdProject.createProject.projectId;
|
|
8644
8641
|
}
|
|
8642
|
+
if (!project?.id) {
|
|
8643
|
+
throw new Error("Project not found");
|
|
8644
|
+
}
|
|
8645
8645
|
return {
|
|
8646
8646
|
organizationId: org.id,
|
|
8647
8647
|
projectId
|