Skip to content

Commit

Permalink
Merge pull request #62 from DIG-Network/release/v0.0.1-alpha.68
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.68
  • Loading branch information
MichaelTaylor3D authored Oct 1, 2024
2 parents 861ecb8 + 814c264 commit 952ecc5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 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.68](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.67...v0.0.1-alpha.68) (2024-10-01)


### Bug Fixes

* return index on key not found ([9d9d9bb](https://github.com/DIG-Network/dig-content-server/commit/9d9d9bb299ffe5e8f64e4efe90aeb5e8daae00f1))

### [0.0.1-alpha.67](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.66...v0.0.1-alpha.67) (2024-10-01)

### [0.0.1-alpha.66](https://github.com/DIG-Network/dig-content-server/compare/v0.0.1-alpha.65...v0.0.1-alpha.66) (2024-10-01)
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dig-content-server",
"version": "0.0.1-alpha.67",
"version": "0.0.1-alpha.68",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand All @@ -25,7 +25,7 @@
],
"dependencies": {
"@dignetwork/datalayer-driver": "^0.1.28",
"@dignetwork/dig-sdk": "^0.0.1-alpha.103",
"@dignetwork/dig-sdk": "^0.0.1-alpha.107",
"add": "^2.0.6",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/storeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const getKey = async (req: Request, res: Response) => {
// Check if the file exists
if (!datalayer.hasKey(key, rootHash)) {
res.setHeader("X-Key-Exists", "false");
return res.status(404).send("Key not found.");
return getKeysIndex(req, res);
}

const sha256 = datalayer.getSHA256(key, rootHash);
Expand Down

0 comments on commit 952ecc5

Please sign in to comment.