Skip to content

Commit 0af9ebf

Browse files
committed
Fix performTransaction call
1 parent 08c49d4 commit 0af9ebf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/server/sendDataToGeoserver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ function isDanteConcept(fieldValue) {
276276

277277
async function performEditTransaction(geometryIds, changeMap, fieldConfiguration, authorizationString) {
278278
const result = await performTransaction(
279-
geometryIds,
280279
getEditRequestXml(geometryIds, changeMap, fieldConfiguration.edit_wfs_feature_type.ValueText),
281280
fieldConfiguration.edit_wfs_url.ValueText,
282281
authorizationString
@@ -289,7 +288,6 @@ async function performEditTransaction(geometryIds, changeMap, fieldConfiguration
289288

290289
async function performDeleteTransaction(geometryIds, fieldConfiguration, authorizationString) {
291290
const result = await performTransaction(
292-
geometryIds,
293291
getDeleteRequestXml(fieldConfiguration.edit_wfs_feature_type.ValueText),
294292
fieldConfiguration.edit_wfs_url.ValueText,
295293
authorizationString
@@ -303,6 +301,8 @@ async function performDeleteTransaction(geometryIds, fieldConfiguration, authori
303301
async function performTransaction(requestXml, wfsUrl, authorizationString) {
304302
const transactionUrl = wfsUrl + '?service=WFS&version=1.1.0&request=Transaction';
305303

304+
throwErrorToFrontend('Request XML', JSON.stringify(requestXml));
305+
306306
try {
307307
const response = await fetch(transactionUrl, {
308308
method: 'POST',

0 commit comments

Comments
 (0)