Skip to content

Commit

Permalink
Fix response check
Browse files Browse the repository at this point in the history
This commit fixes the response check
  • Loading branch information
rishikunnath2747 committed Nov 4, 2024
1 parent d82d3b4 commit 6bf3bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 6bf3bc0

Please sign in to comment.