From f380bb7f655c0f7d29475a9310753b402f933b29 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 5 Feb 2018 22:26:50 -0500 Subject: [PATCH] removal of extra console logs --- src/routes/api/notes.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/routes/api/notes.js b/src/routes/api/notes.js index 37ac51f99..9789bc431 100644 --- a/src/routes/api/notes.js +++ b/src/routes/api/notes.js @@ -58,16 +58,10 @@ router.put('/:noteId', auth.checkApiAuth, wrap(async (req, res, next) => { })); router.get('/', auth.checkApiAuth, wrap(async (req, res, next) => { - console.log("Search: ", req.query.search); - let {attrFilters, searchText} = parseFilters(req.query.search); - console.log(attrFilters); - const {query, params} = getSearchQuery(attrFilters, searchText); - console.log(query, params); - const noteIds = await sql.getColumn(query, params); res.send(noteIds); @@ -78,12 +72,8 @@ function parseFilters(searchText) { const attrRegex = /(\b(and|or)\s+)?@(!?)([\w_-]+|"[^"]+")((=|!=|<|<=|>|>=)([\w_-]+|"[^"]+"))?/i; - console.log("attrRegex", attrRegex); - let match = attrRegex.exec(searchText); - console.log("Match: ", match); - function trimQuotes(str) { return str.startsWith('"') ? str.substr(1, str.length - 2) : str; } while (match != null) {