Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
muskansethi1 committed Nov 4, 2024
1 parent 19978b9 commit 988123f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ cds.once("served", async function registerPluginHandlers() {
});

if(req?.req?.url?.endsWith("/content")) {
const attachmentID = req. req.url.match(attachmentIDRegex)[1];
const attachmentID = req.req.url.match(attachmentIDRegex)[1];
const status = await AttachmentsSrv.getStatus(req.target, { ID : attachmentID });
const scanEnabled = cds.env.requires?.attachments?.scan ?? true
if(scanEnabled && status !== 'Clean') {
Expand Down

0 comments on commit 988123f

Please sign in to comment.