Commit ab332799 by Harish Patel

bug fix

1 parent 52600bee
...@@ -60,6 +60,18 @@ module.exports = factories.createCoreController( ...@@ -60,6 +60,18 @@ module.exports = factories.createCoreController(
password: oneTimePassword, password: oneTimePassword,
}); });
// 5. change from draft to published.
await strapi.entityService.update(
"api::end-user.end-user",
endUser.id,
{
data: {
publishedAt: new Date(),
},
}
);
// TODO: at this point we might have to invoke a Hiranandani API to send the newly registered user there. // TODO: at this point we might have to invoke a Hiranandani API to send the newly registered user there.
ctx.send({ ok: true, message: "user registered" }); ctx.send({ ok: true, message: "user registered" });
}, },
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!