Skip to content
Snippets Groups Projects
Commit b76fb532 authored by Andrey Azov's avatar Andrey Azov
Browse files

Fix variable name

parent 161bd5a8
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ module.exports = async (req, res) => {
res.json({ error, files });
}
const search = req.query.query;
const { query } = req.query;
if (!query) {
res.status(400);
return res.json({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment