Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jackieli-tes committed Jun 8, 2021
1 parent b6ebd03 commit 47d1f9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6375,7 +6375,7 @@ function findObject(mc, bucket, keys, compressionMethod) {
let objects = yield listObjects(mc, bucket, key);
objects = objects.filter((o) => o.name.includes(fn));
if (objects.length < 1) {
break;
continue;
}
const sorted = objects.sort((a, b) => b.lastModified.getTime() - a.lastModified.getTime());
core.debug(`Found object ${JSON.stringify(sorted[0])}`);
Expand Down
2 changes: 1 addition & 1 deletion dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6375,7 +6375,7 @@ function findObject(mc, bucket, keys, compressionMethod) {
let objects = yield listObjects(mc, bucket, key);
objects = objects.filter((o) => o.name.includes(fn));
if (objects.length < 1) {
break;
continue;
}
const sorted = objects.sort((a, b) => b.lastModified.getTime() - a.lastModified.getTime());
core.debug(`Found object ${JSON.stringify(sorted[0])}`);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function findObject(
let objects = await listObjects(mc, bucket, key);
objects = objects.filter((o) => o.name.includes(fn));
if (objects.length < 1) {
break;
continue;
}
const sorted = objects.sort(
(a, b) => b.lastModified.getTime() - a.lastModified.getTime()
Expand Down

0 comments on commit 47d1f9f

Please sign in to comment.