mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 18:00:12 +01:00
Fix lint.
This commit is contained in:
parent
3605072650
commit
0aabb0b364
4 changed files with 6 additions and 4 deletions
|
|
@ -654,7 +654,7 @@ BlazeComponent.extendComponent({
|
||||||
[
|
[
|
||||||
'globalSearch-instructions-operator-has',
|
'globalSearch-instructions-operator-has',
|
||||||
'globalSearch-instructions-operator-sort',
|
'globalSearch-instructions-operator-sort',
|
||||||
'globalSearch-instructions-operator-limit'
|
'globalSearch-instructions-operator-limit',
|
||||||
].forEach(instruction => {
|
].forEach(instruction => {
|
||||||
text += `\n* ${TAPi18n.__(instruction, tags)}`;
|
text += `\n* ${TAPi18n.__(instruction, tags)}`;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,9 @@ Meteor.publish('globalSearch', function(sessionId, queryParams) {
|
||||||
switch (has.field) {
|
switch (has.field) {
|
||||||
case 'attachment':
|
case 'attachment':
|
||||||
const attachments = Attachments.find({}, { fields: { cardId: 1 } });
|
const attachments = Attachments.find({}, { fields: { cardId: 1 } });
|
||||||
selector.$and.push({ _id: { $in: attachments.map(a => a.cardId) } });
|
selector.$and.push({
|
||||||
|
_id: { $in: attachments.map(a => a.cardId) },
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case 'checklist':
|
case 'checklist':
|
||||||
const checklists = Checklists.find({}, { fields: { cardId: 1 } });
|
const checklists = Checklists.find({}, { fields: { cardId: 1 } });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue