From c7e553fe703346976473db76730575d93998775c Mon Sep 17 00:00:00 2001 From: analuizaff Date: Fri, 12 Nov 2021 19:56:19 -0300 Subject: [PATCH] sendding form with the correct user's username --- src/app/components/forms/AssembleIngestionObject.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: [