From ab2884cae0dab07c2fbc279e4917113c32a22921 Mon Sep 17 00:00:00 2001 From: Ghassen Rjab Date: Fri, 23 Feb 2018 01:38:12 +0100 Subject: Fix lint error related to this feature --- models/boards.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/boards.js b/models/boards.js index 61a9c87c..55b0711c 100644 --- a/models/boards.js +++ b/models/boards.js @@ -272,7 +272,7 @@ Boards.helpers({ const projection = { limit: 10, sort: { createdAt: -1 } }; if (term) { - let regex = new RegExp(term, 'i'); + const regex = new RegExp(term, 'i'); query = { boardId: this._id, -- cgit v1.2.3-1-g7c22