Skip to content

Commit 4719f00

Browse files
committed
FIX: app render for unmatched UUIDs
1 parent 84ae60d commit 4719f00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ app.get('/recent', (req, res) => {
6262
app.get('/:uuid', (req, res) => {
6363
loadDatabase((allItems) => {
6464
const match = searchDatabase(req.params, allItems)[0];
65-
if (match.length === 0) {
65+
if (match === undefined) {
6666
logScanned(req.params.uuid);
6767
res.status(404).render('notFound', {
6868
item: '',

0 commit comments

Comments
 (0)