@@ -4,7 +4,7 @@ export const BoardDataPopulate: PopulateOptions[] = [
44 {
55 path : 'users' ,
66 select : 'user role -board votesCount' ,
7- populate : { path : 'user' , select : 'firstName email lastName _id isAnonymous' }
7+ populate : { path : 'user' , select : 'firstName email lastName _id isAnonymous avatar ' }
88 } ,
99 {
1010 path : 'team' ,
@@ -51,7 +51,7 @@ export const GetBoardDataPopulate: PopulateOptions[] = [
5151 select : 'user role -board votesCount' ,
5252 populate : {
5353 path : 'user' ,
54- select : 'firstName email lastName _id isAnonymous isDeleted' ,
54+ select : 'firstName email lastName _id isAnonymous isDeleted avatar ' ,
5555 match : { isDeleted : { $in : [ true , false ] } }
5656 }
5757 } ,
@@ -63,34 +63,34 @@ export const GetBoardDataPopulate: PopulateOptions[] = [
6363 select : 'user role -_id' ,
6464 populate : {
6565 path : 'user' ,
66- select : 'firstName lastName email isDeleted' ,
66+ select : 'firstName lastName email isDeleted avatar ' ,
6767 match : { isDeleted : { $in : [ true , false ] } }
6868 }
6969 }
7070 } ,
7171 {
7272 path : 'columns.cards.createdBy' ,
73- select : '_id firstName lastName isDeleted' ,
73+ select : '_id firstName lastName isDeleted avatar ' ,
7474 match : { isDeleted : { $in : [ true , false ] } }
7575 } ,
7676 {
7777 path : 'columns.cards.comments.createdBy' ,
78- select : '_id firstName lastName isDeleted' ,
78+ select : '_id firstName lastName isDeleted avatar ' ,
7979 match : { isDeleted : { $in : [ true , false ] } }
8080 } ,
8181 {
8282 path : 'columns.cards.items.createdBy' ,
83- select : '_id firstName lastName isDeleted' ,
83+ select : '_id firstName lastName isDeleted avatar ' ,
8484 match : { isDeleted : { $in : [ true , false ] } }
8585 } ,
8686 {
8787 path : 'columns.cards.items.comments.createdBy' ,
88- select : '_id firstName lastName isDeleted' ,
88+ select : '_id firstName lastName isDeleted avatar ' ,
8989 match : { isDeleted : { $in : [ true , false ] } }
9090 } ,
9191 {
9292 path : 'createdBy' ,
93- select : '_id firstName lastName isDeleted' ,
93+ select : '_id firstName lastName isDeleted avatar ' ,
9494 match : { isDeleted : { $in : [ true , false ] } }
9595 } ,
9696 {
@@ -103,22 +103,22 @@ export const GetBoardDataPopulate: PopulateOptions[] = [
103103export const GetCardFromBoardPopulate : PopulateOptions [ ] = [
104104 {
105105 path : 'columns.cards.createdBy' ,
106- select : '_id firstName lastName isDeleted' ,
106+ select : '_id firstName lastName isDeleted avatar ' ,
107107 match : { isDeleted : { $in : [ true , false ] } }
108108 } ,
109109 {
110110 path : 'columns.cards.comments.createdBy' ,
111- select : '_id firstName lastName isDeleted' ,
111+ select : '_id firstName lastName isDeleted avatar ' ,
112112 match : { isDeleted : { $in : [ true , false ] } }
113113 } ,
114114 {
115115 path : 'columns.cards.items.createdBy' ,
116- select : '_id firstName lastName isDeleted' ,
116+ select : '_id firstName lastName isDeleted avatar ' ,
117117 match : { isDeleted : { $in : [ true , false ] } }
118118 } ,
119119 {
120120 path : 'columns.cards.items.comments.createdBy' ,
121- select : '_id firstName lastName isDeleted' ,
121+ select : '_id firstName lastName isDeleted avatar ' ,
122122 match : { isDeleted : { $in : [ true , false ] } }
123123 }
124124] ;
0 commit comments