diff --git a/src/app/components/forms/AssembleIngestionObject.js b/src/app/components/forms/AssembleIngestionObject.js index 1cfa82f..2e059ea 100644 --- a/src/app/components/forms/AssembleIngestionObject.js +++ b/src/app/components/forms/AssembleIngestionObject.js @@ -16,7 +16,7 @@ async function AssembleIngestionObject( array_to_json: [ { formcode: code, - formsanswersuserinformer: "admin@wpd.com", //user.id, + formsanswersuserinformer: user.username, fieldsanswerslongitude: location["longitude"], fieldsanswerslatitude: location["latitude"], fields: [ @@ -48,7 +48,7 @@ const AssembleIngestionPluviometer = async ({ array_to_json: [ { formcode: "PLUVIOMETERS_FORM", - formsanswersuserinformer: "admin@wpd.com", //user.id, + formsanswersuserinformer: user.username, fias: [ { fieldsanswersdate: moment(date).format("DD-MM-YYYY"), @@ -75,7 +75,7 @@ async function AssembleIngestionPluvRegistration( array_to_json: [ { formcode: "PLUVIOMETER_REGISTRATION", - formsanswersuserinformer: "admin@wpd.com", //user.id, + formsanswersuserinformer: user.username, fieldsanswerslongitude: coordinates["longitude"], fieldsanswerslatitude: coordinates["latitude"], fields: [