From 9321cbc094c9f72754a9b4c5b71ba382f00ac08f Mon Sep 17 00:00:00 2001 From: David Bosschaert Date: Wed, 4 Dec 2024 21:19:01 +0100 Subject: [PATCH] Temporarily disable creating the version --- src/storage/object/copy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/storage/object/copy.js b/src/storage/object/copy.js index 50bc118..aacdebc 100644 --- a/src/storage/object/copy.js +++ b/src/storage/object/copy.js @@ -77,7 +77,10 @@ export const copyFile = async (config, env, daCtx, sourceKey, details, isRename) type: original.contentType, }); } - await postObjectVersionWithLabel('Moved', env, daCtx); + // We're doing a rename + + // TODO when storing the version make sure to do it from the file that was where there before + // await postObjectVersionWithLabel('Moved', env, daCtx); const client = new S3Client(config); // This is a move so copy to the new location