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];