Commit 2cf9b731 by jay

.

1 parent 5a81b9d5
......@@ -31,10 +31,11 @@ module.exports = createCoreController(
);
}
try {
console.log("Helllo >>>>>>>>", ctx.request.body.data);
const spertoRegisterCP = await strapi
.service("api::channel-partner.channel-partner")
.sendCPToSperto(ctx.request.body.data);
console.log("Helllo >>>>>>>>", spertoRegisterCP);
ctx.request.body.data.httpRegisterCPRequestHeaders = JSON.stringify(
spertoRegisterCP.headers
);
......
......@@ -18,7 +18,7 @@ module.exports = createCoreService(
const cpData = {
api_key: process.env.SPERTO_API_KEY,
name: data.contactPersonName,
firm_type: data.firm_type, // --
firm_type: data.companyType, // --
address: data.communicationAddress,
mobile_number: data.mobileNo,
email: data.email,
......@@ -29,7 +29,7 @@ module.exports = createCoreService(
pancard: data.pan,
member_of: data.memberOf,
// scanned_cancelled_cheque_url: data.
// scanned_pan_url: data.panFile,
scanned_pan_url: data.panFile,
// rera_certificate_url:
firm_name: data.companyName,
sourcing_manager_id: Number(data.sourcingManager),
......
......@@ -48,7 +48,7 @@
},
"confirmed": {
"type": "boolean",
"default": false,
"default": true,
"configurable": false
},
"blocked": {
......
......@@ -573,9 +573,9 @@ const userPermissionExtension = (plugin) => {
where: { ...identifierFilter, provider },
});
if (conflictingUserCount > 0) {
throw new ApplicationError("Email or Username are already taken");
}
// if (conflictingUserCount > 0) {
// throw new ApplicationError("Email or Username are already taken");
// }
if (settings.unique_email) {
const conflictingUserCount = await strapi
......@@ -584,9 +584,9 @@ const userPermissionExtension = (plugin) => {
where: { ...identifierFilter },
});
if (conflictingUserCount > 0) {
throw new ApplicationError("Email or Username are already taken");
}
// if (conflictingUserCount > 0) {
// throw new ApplicationError("Email or Username are already taken");
// }
}
let newUser = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!