@@ -15,7 +15,7 @@ module.exports = {
1515
1616
1717 const projection = {
18- _id : true , name : true , rank : true , status : true ,
18+ _id : true , name : true , rank : true , status : true , profileImageUrl : true ,
1919 group : true , email : true , tel : true , lastLogin : true
2020 } ;
2121
@@ -31,7 +31,7 @@ module.exports = {
3131
3232 let projection = {
3333 _id : true , serviceNumber :true , name : true , rank : true , title :true ,
34- status : true , group : true , email : true , tel : true , lastLogin : true ,
34+ status : true , group : true , email : true , tel : true , profileImageUrl : true ,
3535 lastLogin : true , firseLogin :true , bookmarks : true , subscriptions : true
3636 } ;
3737
@@ -40,8 +40,8 @@ module.exports = {
4040
4141 if ( auth === 'general' ) {
4242 projection = {
43- _id : true , name : true , rank : true , status : true ,
44- group : true , email : true , tel : true , lastLogin : true
43+ _id : true , name : true , rank : true , status : true ,
44+ group : true , email : true , tel : true , lastLogin : true , profileImageUrl : true ,
4545 } ;
4646 }
4747
@@ -66,7 +66,7 @@ module.exports = {
6666 const keys = Object . keys ( req . body ) ;
6767 const valids = [ 'password' , 'name' , 'name' , 'rank' ,
6868 'title' , 'status' , 'group' , 'email' , 'tel' ,
69- 'lastLogin' , 'firstLogin' , 'bookmarks' , 'subscriptions' ] ;
69+ 'lastLogin' , 'firstLogin' , 'bookmarks' , 'subscriptions' , 'profileImageUrl' ] ;
7070
7171 // Only allowed fields are Searchable
7272 for ( let key of keys ) {
0 commit comments