@maioradv/nestjs-core 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,8 +89,11 @@ let S3Service = class S3Service {
89
89
  });
90
90
  const objectKeys = [];
91
91
  for await (const { Contents } of paginator) {
92
- objectKeys.push(...Contents.map((obj) => ({ Key: obj.Key })));
92
+ if (Contents.length > 0)
93
+ objectKeys.push(...Contents.map((obj) => ({ Key: obj.Key })));
93
94
  }
95
+ if (objectKeys.length == 0)
96
+ return;
94
97
  return this.client.send(new client_s3_1.DeleteObjectsCommand({
95
98
  Bucket: this.sdkConfigs.bucketName,
96
99
  Delete: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/nestjs-core",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "NestJS helpers by MaiorADV",
5
5
  "repository": "https://github.com/maioradv/nestjs-core.git",
6
6
  "author": "Maior ADV Srl",