module.exports = async (req, res, manifest) => {
const user = await manifest.from('users').where('name = ' + req.body.name).find();
const userId = user.data[0].id;
await manifest.from('profiles').create({
userId: userId,
});
}
module.exports = async (req, res, manifest) => {
const user = await manifest.from('users').where('name = ' + req.body.name).find();
const userId = user.data[0].id;
await manifest.from('profiles').create({
userId: userId,
});
}