Skip to content

Commit

Permalink
Merge pull request #32 from DIG-Network/release/v0.0.1-alpha.35
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.35
  • Loading branch information
MichaelTaylor3D authored Sep 22, 2024
2 parents fad49b7 + c2d12b2 commit 4ab70b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.35](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.34...v0.0.1-alpha.35) (2024-09-22)


### Bug Fixes

* add missing head file upload ([b43ee7d](https://github.com/DIG-Network/dig-propagation-server/commit/b43ee7d46a71c7ab8f6e819def6c8f47528abdf8))

### [0.0.1-alpha.34](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.33...v0.0.1-alpha.34) (2024-09-22)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dig-propagation-server",
"version": "0.0.1-alpha.34",
"version": "0.0.1-alpha.35",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
8 changes: 3 additions & 5 deletions src/controllers/merkleTreeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,9 @@ export const generateFileNonce = async (req: Request, res: Response): Promise<vo
throw new HttpError(400, "Missing required parameters.");
}

// Construct the path for the upload session
const sessionPath = path.join(digFolderPath, "uploads", storeId, sessionId);

// Check if the session directory exists
if (!fs.existsSync(sessionPath)) {
// Check if the session exists in the cache
const session = sessionCache[sessionId];
if (!session) {
throw new HttpError(404, "Upload session not found.");
}

Expand Down

0 comments on commit 4ab70b5

Please sign in to comment.