Skip to content

Commit cc2f204

Browse files
committed
Merge branch 'bugfix/BB-250-lc-restore-decode-versionid' into q/8.4
2 parents 43c2d9a + 9a8235c commit cc2f204

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/lifecycle/LifecycleQueuePopulator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { constants } = require('arsenal');
2+
const { encode } = require('arsenal').versioning.VersionID;
23
const { mpuBucketPrefix } = constants;
34
const QueuePopulatorExtension =
45
require('../../lib/queuePopulator/QueuePopulatorExtension');
@@ -232,8 +233,8 @@ class LifecycleQueuePopulator extends QueuePopulatorExtension {
232233
const key = `${entry.bucket}/${entry.key}`;
233234
const message = JSON.stringify({
234235
bucketName: entry.bucket,
235-
objectKey: entry.key,
236-
objectVersion: value.versionId,
236+
objectKey: value.key,
237+
objectVersion: encode(value.versionId),
237238
archiveInfo: value.archive.archiveInfo,
238239
requestId: uuid(),
239240
accountId

0 commit comments

Comments
 (0)