|
|
@ -388,12 +388,13 @@ exports.addBores = async (req, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var customerId = req.params.customerId;
|
|
|
|
var InstallerId = req.params.InstallerId;
|
|
|
|
//console.log(customerId);
|
|
|
|
//console.log(customerId);
|
|
|
|
//const username = loginObject.user.username;
|
|
|
|
//const username = loginObject.user.username;
|
|
|
|
|
|
|
|
|
|
|
|
boresData = {
|
|
|
|
boresData = {
|
|
|
|
customerId:customerId,
|
|
|
|
InstallerId:InstallerId,
|
|
|
|
|
|
|
|
customerId:req.body.customerId,
|
|
|
|
boreName: req.body.boreName,
|
|
|
|
boreName: req.body.boreName,
|
|
|
|
capacity: req.body.capacity,
|
|
|
|
capacity: req.body.capacity,
|
|
|
|
typeofwater: req.body.typeofwater,
|
|
|
|
typeofwater: req.body.typeofwater,
|
|
|
@ -414,6 +415,9 @@ exports.addBores = async (req, reply) => {
|
|
|
|
if (checkFormEncoding.isUserFormUrlEncoded) {
|
|
|
|
if (checkFormEncoding.isUserFormUrlEncoded) {
|
|
|
|
usertobeInserted = checkFormEncoding.bores;
|
|
|
|
usertobeInserted = checkFormEncoding.bores;
|
|
|
|
console.log("thsi true url string");
|
|
|
|
console.log("thsi true url string");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bores.InstallerId = usertobeInserted.InstallerId
|
|
|
|
|
|
|
|
|
|
|
|
bores.customerId = usertobeInserted.customerId
|
|
|
|
bores.customerId = usertobeInserted.customerId
|
|
|
|
bores.boreName = usertobeInserted.boreName;
|
|
|
|
bores.boreName = usertobeInserted.boreName;
|
|
|
|
bores.capacity = usertobeInserted.capacity;
|
|
|
|
bores.capacity = usertobeInserted.capacity;
|
|
|
|