Commit df11dc47 by jaymehta

.

1 parent e4d313e5
......@@ -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 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);
if (existingUser) {
if (existingUser && existingUser.length !== 0) {
} else {
ctx.request.body.data.user = currentUser.id;
const response = await strapi.entityService.create(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!