Skip to content

Commit

Permalink
Merge pull request #73 from cap-js/release-changes
Browse files Browse the repository at this point in the history
Release prep - Version 1.1.2
  • Loading branch information
muskansethi1 authored Jun 21, 2024
2 parents 06a3e4e + 285832c commit d1961d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Added

- Content of files detected as `Infected` from malware scanning are now deleted.
- Content of files detected as `Infected` from malware scanning service are now deleted.

### Changed

- Attachments aren't served if their scan status isn't `Clean`.
- Reduced the delay of setting scan status to `Clean` if malware scanning is disabled to 5 sec.
- Reduced the delay of setting scan status to `Clean` to 5 sec, if malware scanning is disabled.

### Fixed

- Bug fixes for event handlers in production.
- Bug fix for attachment target condition.

## Version 1.1.1

Expand Down
1 change: 1 addition & 0 deletions lib/aws-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = class AWSAttachmentsService extends require("./basic") {
}
}

// eslint-disable-next-line no-unused-vars
async get(attachments, keys, req = {}) {
const response = await SELECT.from(attachments, keys).columns("url");
if (response?.url) {
Expand Down
1 change: 1 addition & 0 deletions lib/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = class AttachmentsService extends cds.Service {
return res;
}

// eslint-disable-next-line no-unused-vars
async get(attachments, keys, req = {}) {
if (attachments.isDraft) {
attachments = attachments.actives;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cap-js/attachments",
"description": "CAP cds-plugin providing image and attachment storing out-of-the-box.",
"version": "1.1.1",
"version": "1.1.2",
"repository": "cap-js/attachments",
"author": "SAP SE (https://www.sap.com)",
"homepage": "https://cap.cloud.sap/",
Expand Down

0 comments on commit d1961d1

Please sign in to comment.