Ver Fonte

Fix lint error related to this feature

Ghassen Rjab há 7 anos atrás
pai
commit
ab2884cae0
1 ficheiros alterados com 1 adições e 1 exclusões
  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,