mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 13:17:24 +01:00
fix(async): remove catch, add return
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user