Browse Source

server: prevent empty references

master
Milan Pässler 1 year ago
parent
commit
92cfb06905
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      server/index.js

+ 1
- 0
server/index.js View File

@@ -39,6 +39,7 @@ const getStorePathFromHash = (hash) => getNarinfoKey(hash, "StorePath");

const getReferences = async (hash) => {
const key = await getNarinfoKey(hash, "References");
if (!key.length) return [];
return key.split(" ").map(parseDerivationPath);
};



Loading…
Cancel
Save