From 83e831fc6c4e603da9e66ab96acaa4ee5fb81391 Mon Sep 17 00:00:00 2001 From: David Bosschaert Date: Mon, 13 May 2024 07:50:51 +0100 Subject: [PATCH] wip --- src/storage/version/put.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/storage/version/put.js b/src/storage/version/put.js index 7ae4224..54a1d97 100644 --- a/src/storage/version/put.js +++ b/src/storage/version/put.js @@ -93,6 +93,7 @@ export async function putObjectWithVersion(env, daCtx, update, body) { // Store only if we requested the body and the last full store was more than an hour ago const storeBody = body && (Date.now() - lfs > 1000 * 60 * 60); + console.log('putObjectWithVersion', storeBody); const ID = current.metadata?.id || crypto.randomUUID(); const Version = current.metadata?.version || crypto.randomUUID(); @@ -121,9 +122,11 @@ export async function putObjectWithVersion(env, daCtx, update, body) { } } + // Body: storeBody ? current.body : '', + const versionResp = await putVersion(config, { Bucket: input.Bucket, - Body: storeBody ? current.body : '', + Body: current.body, ID, Version, Ext: daCtx.ext,