@kumori/aurora-backend-handler 1.1.87 → 1.1.88
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/api/tenant-api-service.ts +15 -22
- package/package.json +1 -1
|
@@ -198,24 +198,21 @@ export const updateTenant = async (tenant: Tenant, security: string) => {
|
|
|
198
198
|
|
|
199
199
|
const updateBody: Record<string, any> = {
|
|
200
200
|
tenant: tenant.name,
|
|
201
|
+
spec: {},
|
|
201
202
|
};
|
|
202
203
|
if (hasPlan) {
|
|
203
204
|
updateBody.provider = tenant.plan!.provider || "";
|
|
204
205
|
updateBody.plan = tenant.plan!.name;
|
|
205
|
-
} else {
|
|
206
|
-
updateBody.spec =
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
:
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
credentials: tenant.npmRegistry!.credentials,
|
|
216
|
-
public: tenant.npmRegistry!.public,
|
|
217
|
-
},
|
|
218
|
-
};
|
|
206
|
+
} else if (hasNpmRegistry) {
|
|
207
|
+
updateBody.spec.registry = isNpmRegistryEmpty
|
|
208
|
+
? null
|
|
209
|
+
: {
|
|
210
|
+
kind: "git",
|
|
211
|
+
endpoint: tenant.npmRegistry!.endpoint,
|
|
212
|
+
domain: tenant.npmRegistry!.domain,
|
|
213
|
+
credentials: tenant.npmRegistry!.credentials,
|
|
214
|
+
public: tenant.npmRegistry!.public,
|
|
215
|
+
};
|
|
219
216
|
}
|
|
220
217
|
|
|
221
218
|
const response = await makeGlobalWebSocketRequest(
|
|
@@ -449,14 +446,10 @@ export const updateTenantHTTP = async (tenant: Tenant) => {
|
|
|
449
446
|
},
|
|
450
447
|
},
|
|
451
448
|
}
|
|
452
|
-
:
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
spec: {
|
|
457
|
-
registry: undefined,
|
|
458
|
-
},
|
|
459
|
-
};
|
|
449
|
+
: {
|
|
450
|
+
tenant: tenant.name,
|
|
451
|
+
spec: {},
|
|
452
|
+
};
|
|
460
453
|
const response = await fetch(updateTenantUrl, {
|
|
461
454
|
method: "PATCH",
|
|
462
455
|
headers: {
|