Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
灵轮 committed Jun 19, 2024
1 parent 983826b commit efe957f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: sync-oss-bucket
Version: 0.0.3
Version: 0.0.4
Provider:
- 阿里云
Description: 将一个 OSS Bucket 中的内容同步到另一个 OSS Bucket
Expand Down
2 changes: 1 addition & 1 deletion src/sync-worker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports.handler = async (event, context, callback) => {
headers: { etag: currentEtag },
},
} = result;
if (currentEtag === `"${etag}"`) {
if (currentEtag === etag) {
console.log(`Object ${name} not changed`);
callback(null, "");
return;
Expand Down

0 comments on commit efe957f

Please sign in to comment.