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

Commit

Permalink
fix log code
Browse files Browse the repository at this point in the history
  • Loading branch information
montyanderson committed Jan 24, 2020
1 parent aef1e65 commit 60f5331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ async function cloneUser({ username, lastSynced }) {
const logPath = `${__dirname}/repos/${username}.log`;
const storjLogPath = `${pathing.encode(username)}.log`;

await fs.writeFile(logPath, publicLog);

storageDelta -= await storjSize(storjLogPath);
await storjUpload(logPath, storjLogPath);
storageDelta += (await fs.stat(logPath)).size;
Expand Down

0 comments on commit 60f5331

Please sign in to comment.