fix(async): remove catch, add return

This commit is contained in:
Sabe Jones
2019-11-19 12:59:53 -06:00
parent 46822ecbae
commit b4efe11e6a
2 changed files with 3 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ async function updateUser (user) {
user,
EMAIL_SLUG,
[{ name: 'BASE_URL', content: BASE_URL }], // Add variables from template
).catch(err => console.error(err));
);
return User.update({ _id: user._id }, { $set: { migration: MIGRATION_NAME } }).exec();
}