@kumori/aurora-backend-handler 1.0.43 → 1.0.44
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.
|
@@ -410,15 +410,11 @@ export const updateService = async (
|
|
|
410
410
|
const url = new URL(
|
|
411
411
|
`${environment.apiServer.baseUrl}/api/${environment.apiServer.apiVersion}/tenant/${data.tenant}/service/${data.name}/revision/${data.currentRevision}`,
|
|
412
412
|
);
|
|
413
|
-
console.log('DEBUG data', data);
|
|
414
413
|
if (data.dsl) {
|
|
415
414
|
url.searchParams.append("dsl", "true");
|
|
416
415
|
}
|
|
417
416
|
if (data.serviceData) {
|
|
418
|
-
console.log('DEBUG - Updating service with bundle data, URL:', url.toString());
|
|
419
|
-
console.log('DEBUG - Service data to update:', data.serviceData);
|
|
420
417
|
const formData = new FormData();
|
|
421
|
-
console.log('DEBUG - FormData before appending:', formData);
|
|
422
418
|
formData.append("type", "update-bundle");
|
|
423
419
|
formData.append("bundle", data.serviceData);
|
|
424
420
|
formData.append(
|
|
@@ -430,18 +426,15 @@ export const updateService = async (
|
|
|
430
426
|
);
|
|
431
427
|
formData.append("labels", JSON.stringify({ project: data.project }));
|
|
432
428
|
formData.append("comment", " ");
|
|
433
|
-
console.log('DEBUG - loaded FormData:', formData);
|
|
434
429
|
const response = await fetch(url.toString(), {
|
|
435
430
|
method: "POST",
|
|
436
431
|
body: formData,
|
|
437
432
|
});
|
|
438
|
-
console.log('DEBUG - Update service response:', response);
|
|
439
433
|
if (!response.ok) {
|
|
440
434
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
441
435
|
}
|
|
442
436
|
|
|
443
437
|
const jsonResponse = await response.json();
|
|
444
|
-
console.log('DEBUG - Update service JSON response:', jsonResponse);
|
|
445
438
|
const isTimeout = jsonResponse?.events?.some(
|
|
446
439
|
(event: any) => event.content === "_timeout_",
|
|
447
440
|
);
|