mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 13:07:17 -04:00
Code cleanup and remove debugging code
This commit is contained in:
parent
6def7d6f70
commit
183404a5f8
2 changed files with 4 additions and 31 deletions
|
@ -82,24 +82,3 @@ template(name="globalSearch")
|
|||
.global-search-instructions
|
||||
+viewer
|
||||
= searchInstructions
|
||||
|
||||
template(name="globalSearchViewChangePopup")
|
||||
if currentUser
|
||||
ul.pop-over-list
|
||||
li
|
||||
with "globalSearchViewChange-choice-me"
|
||||
a.js-global-search-view-me
|
||||
i.fa.fa-user.colorful
|
||||
| {{_ 'globalSearchViewChange-choice-me'}}
|
||||
if $eq Utils.globalSearchView "me"
|
||||
i.fa.fa-check
|
||||
li
|
||||
with "globalSearchViewChange-choice-all"
|
||||
a.js-global-search-view-all
|
||||
i.fa.fa-users.colorful
|
||||
| {{_ 'globalSearchViewChange-choice-all'}}
|
||||
span.sub-name
|
||||
+viewer
|
||||
| {{_ 'globalSearchViewChange-choice-all-description' }}
|
||||
if $eq Utils.globalSearchView "all"
|
||||
i.fa.fa-check
|
||||
|
|
|
@ -85,7 +85,7 @@ Meteor.publish('globalSearch', function(sessionId, params) {
|
|||
check(params, Object);
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('queryParams:', params);
|
||||
// console.log('queryParams:', params);
|
||||
|
||||
return findCards(sessionId, buildQuery(new QueryParams(params)));
|
||||
});
|
||||
|
@ -564,7 +564,7 @@ Meteor.publish('brokenCards', function(sessionId) {
|
|||
{ swimlaneId: { $in: [null, ''] } },
|
||||
{ listId: { $in: [null, ''] } },
|
||||
];
|
||||
console.log('brokenCards selector:', query.selector);
|
||||
// console.log('brokenCards selector:', query.selector);
|
||||
|
||||
return findCards(sessionId, query);
|
||||
});
|
||||
|
@ -593,8 +593,8 @@ function findCards(sessionId, query) {
|
|||
const userId = Meteor.userId();
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('selector:', query.selector);
|
||||
console.log('selector.$and:', query.selector.$and);
|
||||
// console.log('selector:', query.selector);
|
||||
// console.log('selector.$and:', query.selector.$and);
|
||||
// eslint-disable-next-line no-console
|
||||
// console.log('projection:', projection);
|
||||
let cards;
|
||||
|
@ -604,7 +604,6 @@ function findCards(sessionId, query) {
|
|||
// eslint-disable-next-line no-console
|
||||
// console.log('count:', cards.count());
|
||||
|
||||
console.log(query);
|
||||
const update = {
|
||||
$set: {
|
||||
totalHits: 0,
|
||||
|
@ -616,11 +615,6 @@ function findCards(sessionId, query) {
|
|||
errors: query.errors(),
|
||||
},
|
||||
};
|
||||
// if (errors) {
|
||||
// update.$set.errors = errors.errors();
|
||||
// }
|
||||
|
||||
console.log('errors:', query.errors());
|
||||
|
||||
if (cards) {
|
||||
update.$set.totalHits = cards.count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue