alt+s toggles search instead of just showing it

This commit is contained in:
azivner
2017-12-26 19:16:04 -05:00
parent 7aff20bb0d
commit 0d3b3ec7c5
3 changed files with 9 additions and 9 deletions

View File

@@ -67,7 +67,7 @@ router.delete('/:noteTreeId', auth.checkApiAuth, async (req, res, next) => {
router.get('/', auth.checkApiAuth, async (req, res, next) => {
const search = '%' + req.query.search + '%';
const result = await sql.getAll("SELECT note_id FROM notes WHERE note_title liKE ? OR note_text LIKE ?", [search, search]);
const result = await sql.getAll("SELECT note_id FROM notes WHERE note_title LIKE ? OR note_text LIKE ?", [search, search]);
const noteIdList = [];