mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
feat(form): Ask a Question mode on bug report
This commit is contained in:
@@ -2,7 +2,7 @@ import nconf from 'nconf';
|
||||
import { convertVariableObjectToArray, sendTxn } from './email';
|
||||
|
||||
export async function bugReportLogic (
|
||||
user, userEmail, message, BROWSER_UA,
|
||||
user, userEmail, message, BROWSER_UA, question,
|
||||
) {
|
||||
const emailData = {
|
||||
USER_ID: user._id,
|
||||
@@ -28,7 +28,7 @@ export async function bugReportLogic (
|
||||
|
||||
const sendMailResult = await sendTxn(
|
||||
adminMail,
|
||||
'report-a-bug',
|
||||
question ? 'ask-a-question' : 'report-a-bug',
|
||||
convertVariableObjectToArray(emailData),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user