mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 12:14:21 +01:00
My Cards development
* only find client side cards of the user
This commit is contained in:
parent
0f6a60fa69
commit
7a419c1563
2 changed files with 6 additions and 2 deletions
|
|
@ -31,6 +31,7 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
cardsFind() {
|
||||
const userId = Meteor.userId();
|
||||
const boards = [];
|
||||
let board = null;
|
||||
let swimlane = null;
|
||||
|
|
@ -38,8 +39,8 @@ BlazeComponent.extendComponent({
|
|||
|
||||
const cursor = Cards.find(
|
||||
{
|
||||
// archived: false,
|
||||
// $or: [{ members: userId }, { assignees: userId }],
|
||||
archived: false,
|
||||
$or: [{ members: userId }, { assignees: userId }],
|
||||
},
|
||||
{
|
||||
sort: {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ Meteor.publish('myCards', function() {
|
|||
{
|
||||
fields: {
|
||||
_id: 1,
|
||||
archived: 1,
|
||||
boardId: 1,
|
||||
swimlaneId: 1,
|
||||
listId: 1,
|
||||
|
|
@ -22,6 +23,8 @@ Meteor.publish('myCards', function() {
|
|||
sort: 1,
|
||||
members: 1,
|
||||
assignees: 1,
|
||||
colors: 1,
|
||||
dueAt: 1,
|
||||
},
|
||||
// sort: {
|
||||
// sort: ['boardId', 'listId', 'sort'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue