await to save

This commit is contained in:
srgooglo 2022-03-14 22:56:51 +01:00
parent 67f500f9d4
commit cbf875ba98

View File

@ -22,7 +22,7 @@ export default async function (payload) {
roles: roles,
})
user.save()
await user.save()
return user
}