Skip to content

Commit

Permalink
Temporarily disable creating the version on rename (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert authored Dec 5, 2024
1 parent 2811b46 commit 6c01f9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/storage/object/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import getObject from './get.js';
import getS3Config from '../utils/config.js';
import { invalidateCollab } from '../utils/object.js';
import { postObjectVersionWithLabel, putObjectWithVersion } from '../version/put.js';
import { putObjectWithVersion } from '../version/put.js';
import { listCommand } from '../utils/list.js';

const MAX_KEYS = 900;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c01f9e

Please sign in to comment.