From 6bf3bc0e0f6dc8fa59d1501d03cb4396afeeb24a Mon Sep 17 00:00:00 2001 From: Rishi Kunnath <82925475+rishikunnath2747@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:17:09 +0530 Subject: [PATCH 1/2] Fix response check This commit fixes the response check --- lib/sdm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sdm.js b/lib/sdm.js index 3f9405d..f16f88d 100644 --- a/lib/sdm.js +++ b/lib/sdm.js @@ -366,7 +366,7 @@ async isFileNameDuplicateInDrafts(data,req) { token ); - if (response.status == undefined && response.response.status !=200) { + if (response.status != 200) { //modify req.data.attachments for(let i = 0; i < req.data.attachments.length; i++) { let attachmentUpdate = req.data.attachments[i]; From f6fbbdc0487222edc571305c27e0ea31aac2cb08 Mon Sep 17 00:00:00 2001 From: Rishi Kunnath <82925475+rishikunnath2747@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:25:11 +0530 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86c48ad..fb40d7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). ## Version 1.2.2 ### Fixed -App crash issue on update of fields when no attachments are added. + + - App crash issue on update of fields when no attachments are added. + - Attachment getting renamed even when duplicate attachment of same name exists. ## Version 1.2.1