Commit d3892d59 by jaymehta

.

1 parent d2125650
...@@ -62,9 +62,9 @@ module.exports = createCoreController("api::end-user.end-user", () => ({ ...@@ -62,9 +62,9 @@ module.exports = createCoreController("api::end-user.end-user", () => ({
// TODO: Code to send OTP on email // TODO: Code to send OTP on email
// TODO: Code to send OTP on SMS // TODO: Code to send OTP on SMS
console.log("ctx.request.body.data", ctx.request.body.data); // console.log("ctx.request.body.data", ctx.request.body.data);
console.log("existingUser", existingUser); console.log("existingUser", existingUser);
if (existingUser && existingUser.length !== 0) { if (existingUser) {
} else { } else {
ctx.request.body.data.user = currentUser.id; ctx.request.body.data.user = currentUser.id;
const response = await strapi.entityService.create( const response = await strapi.entityService.create(
......
...@@ -79,7 +79,7 @@ module.exports = createCoreController("api::vendor.vendor", () => ({ ...@@ -79,7 +79,7 @@ module.exports = createCoreController("api::vendor.vendor", () => ({
console.log("ctx.request.body.data", ctx.request.body.data); console.log("ctx.request.body.data", ctx.request.body.data);
console.log("existingUser", existingUser); console.log("existingUser", existingUser);
if (existingUser && existingUser.length !== 0) { if (existingUser) {
} else { } else {
ctx.request.body.data.user = currentUser.id; ctx.request.body.data.user = currentUser.id;
const response = await strapi.entityService.create("api::vendor.vendor", { const response = await strapi.entityService.create("api::vendor.vendor", {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!