Skip to content

Commit

Permalink
fix: return value
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jun 30, 2024
1 parent eb641e1 commit 0435a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/api/src/routes/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const keysRoute = async (
const fingerprintKeyMap = await mapFingerprints(keys)
const found = fingerprintKeyMap.filter(el => {if (el.fingerprint === fingerprint) { return el.key }});

if (found) {
if (!found) {
logger.debug(`Unknown fingerprint: ${fingerprint}`);
}

Expand All @@ -81,7 +81,7 @@ const keysRoute = async (
);
}

res.send(found[0].key);
res.send(foundkey[0].key);
};

export default [bodyParser.json(), keysRoute];

0 comments on commit 0435a22

Please sign in to comment.