Skip to content

Commit

Permalink
Freeze query results
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Aug 28, 2019
1 parent 6764033 commit 28506de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function search(db, query, params) {
items.push(id)
})

return { items }
return { items: Object.freeze(items) }
}


Expand Down

0 comments on commit 28506de

Please sign in to comment.