Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
await storjSize
Browse files Browse the repository at this point in the history
  • Loading branch information
montyanderson committed Nov 20, 2019
1 parent 9e2f358 commit 02cebe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ async function cloneUser({ username, lastSynced }) {
const storjZipPath = `github.com/${repo.full_name}.zip`;

// Remove old sizes from total storage delta:
storageDelta -= storjSize(storjBundlePath);
storageDelta -= storjSize(storjZipPath);
storageDelta -= await storjSize(storjBundlePath);
storageDelta -= await storjSize(storjZipPath);

// Try to upload the files:
await storjUpload(repoBundlePath, storjBundlePath);
Expand Down

0 comments on commit 02cebe8

Please sign in to comment.