mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(async): remove catch, add return
This commit is contained in:
parent
46822ecbae
commit
b4efe11e6a
2 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -149,4 +149,6 @@ export async function sendTxn (mailingInfoArray, emailType, variables, personalV
|
|||
},
|
||||
}).catch(err => logger.error(err));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue