Skip to content

Commit

Permalink
Issue 73:App crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmiangadi11 committed Oct 16, 2024
1 parent f861c3a commit b7bfa12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.cds
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using { Attachments} from '@cap-js/attachments';
extend aspect Attachments with {
folderId : String @title: 'Folder ID';
folderId : String @title: 'Folder ID' @readonly;
};

annotate Attachments with @UI:{
Expand Down
2 changes: 2 additions & 0 deletions lib/sdm.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ async isFileNameDuplicateInDrafts(data,req) {
if (attachments) {
const diffData = await req.diff();
let deletedAttachments = [];
if(diffData.attachments){
diffData.attachments
.filter((object) => {
return object._op === "delete";
Expand Down Expand Up @@ -243,6 +244,7 @@ async isFileNameDuplicateInDrafts(data,req) {
}
}
}
}
}

async deleteAttachmentsWithKeys(records, req) {
Expand Down

0 comments on commit b7bfa12

Please sign in to comment.