Browse Source

sendding form with the correct user's username

master
analuizaff 3 years ago
parent
commit
c7e553fe70
  1. 6
      src/app/components/forms/AssembleIngestionObject.js

6
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: [

Loading…
Cancel
Save