mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix bug that prevented sending of emails to admin addresses (#8832)
This commit is contained in:
@@ -329,7 +329,7 @@ api.deleteUser = {
|
||||
await user.remove();
|
||||
|
||||
if (feedback) {
|
||||
txnEmail(TECH_ASSISTANCE_EMAIL, 'admin-feedback', [
|
||||
txnEmail({email: TECH_ASSISTANCE_EMAIL}, 'admin-feedback', [
|
||||
{name: 'PROFILE_NAME', content: user.profile.name},
|
||||
{name: 'UUID', content: user._id},
|
||||
{name: 'EMAIL', content: getUserInfo(user, ['email']).email},
|
||||
|
||||
@@ -134,7 +134,7 @@ api.addSubToGroupUser = async function addSubToGroupUser (member, group) {
|
||||
let ignoreCustomerId = customerIdsToIgnore.indexOf(memberPlan.customerId) !== -1;
|
||||
|
||||
if (ignorePaymentPlan) {
|
||||
txnEmail(TECH_ASSISTANCE_EMAIL, 'admin-user-subscription-details', [
|
||||
txnEmail({email: TECH_ASSISTANCE_EMAIL}, 'admin-user-subscription-details', [
|
||||
{name: 'PROFILE_NAME', content: member.profile.name},
|
||||
{name: 'UUID', content: member._id},
|
||||
{name: 'EMAIL', content: getUserInfo(member, ['email']).email},
|
||||
|
||||
Reference in New Issue
Block a user