From 0cbcdd69484a80037bd77c3612acf2ee478af2ae Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 13 May 2021 14:57:08 -0500 Subject: [PATCH] Specify type of send from templateType (#304) * Specify type of send from templateType * Default to Text type send --- src/models/response/sendResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/response/sendResponse.ts b/src/models/response/sendResponse.ts index 28cb9d6ceb..a17640e495 100644 --- a/src/models/response/sendResponse.ts +++ b/src/models/response/sendResponse.ts @@ -18,7 +18,7 @@ export class SendResponse implements BaseResponse { const req = new SendResponse(); req.name = 'Send name'; req.notes = 'Some notes about this send.'; - req.type = SendType.Text; + req.type = sendType === SendType.File ? SendType.File : SendType.Text; req.text = sendType === SendType.Text ? SendTextResponse.template() : null; req.file = sendType === SendType.File ? SendFileResponse.template() : null; req.maxAccessCount = null;