File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -524,15 +524,12 @@ export class GroupMembershipService {
524524 * @returns response dto
525525 */
526526 async getMemberGroups ( memberId : string , dto : GetMemberGroupsDto ) {
527- const returnUuid = dto . uuid ;
527+ const returnUuid = dto ? .uuid ?? true ;
528528 const memberships = await this . prisma . groupMembership . findMany ( {
529529 where : {
530530 memberId : memberId ,
531531 group : {
532532 status : GroupStatus . ACTIVE ,
533- oldId : {
534- not : null ,
535- } ,
536533 } ,
537534 } ,
538535 } ) ;
@@ -557,15 +554,15 @@ export class GroupMembershipService {
557554
558555 const groups : any [ ] = [ ] ;
559556 groupRes . forEach ( ( groupL1 ) => {
560- if ( groupL1 . status === GroupStatus . ACTIVE && groupL1 . oldId ) {
557+ if ( groupL1 . status === GroupStatus . ACTIVE ) {
561558 groups . push ( groupL1 ) ;
562559 }
563560 groupL1 . parentGroups . forEach ( ( groupL2 ) => {
564- if ( groupL2 . status === GroupStatus . ACTIVE && groupL2 . oldId ) {
561+ if ( groupL2 . status === GroupStatus . ACTIVE ) {
565562 groups . push ( groupL2 ) ;
566563 }
567564 groupL2 . parentGroups . forEach ( ( groupL3 ) => {
568- if ( groupL3 . status === GroupStatus . ACTIVE && groupL3 . oldId ) {
565+ if ( groupL3 . status === GroupStatus . ACTIVE ) {
569566 groups . push ( groupL3 ) ;
570567 }
571568 } ) ;
Original file line number Diff line number Diff line change @@ -107,13 +107,13 @@ export class GetMemberGroupsDto {
107107 name : 'uuid' ,
108108 description : 'whether return uuid' ,
109109 type : 'boolean' ,
110- default : false ,
110+ default : true ,
111111 required : false ,
112112 } )
113113 @Transform ( ( { value } ) => transformBoolean ( value ) )
114114 @IsBoolean ( )
115115 @IsOptional ( )
116- uuid : boolean = false ;
116+ uuid : boolean = true ;
117117}
118118
119119export class GetGroupMembersCountDto {
You can’t perform that action at this time.
0 commit comments