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