Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed May 13, 2024
1 parent 72dd7cb commit 83e831f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/storage/version/put.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check warning on line 96 in src/storage/version/put.js

View workflow job for this annotation

GitHub Actions / Running tests (20.x)

Unexpected console statement

Check warning on line 97 in src/storage/version/put.js

View check run for this annotation

Codecov / codecov/patch

src/storage/version/put.js#L92-L97

Added lines #L92 - L97 were not covered by tests
const ID = current.metadata?.id || crypto.randomUUID();
const Version = current.metadata?.version || crypto.randomUUID();
Expand Down Expand Up @@ -121,9 +122,11 @@ export async function putObjectWithVersion(env, daCtx, update, body) {
}
}

// Body: storeBody ? current.body : '',

Check warning on line 126 in src/storage/version/put.js

View check run for this annotation

Codecov / codecov/patch

src/storage/version/put.js#L125-L126

Added lines #L125 - L126 were not covered by tests
const versionResp = await putVersion(config, {
Bucket: input.Bucket,
Body: storeBody ? current.body : '',
Body: current.body,
ID,
Version,
Ext: daCtx.ext,
Expand Down

0 comments on commit 83e831f

Please sign in to comment.