浏览代码

Fix lint error related to this feature

Ghassen Rjab 7 年之前
父节点
当前提交
ab2884cae0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/boards.js

+ 1 - 1
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,