format
This commit is contained in:
		
							parent
							
								
									c50fbbeaf8
								
							
						
					
					
						commit
						7e7f917750
					
				| 
						 | 
					@ -197,7 +197,7 @@ export class UsersService {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  async deleteTenant(id: string) {
 | 
					  async deleteTenant(id: string) {
 | 
				
			||||||
    return this.userModel.findOneAndUpdate({ _id: id }, { status: '-1' }, {
 | 
					    return this.userModel.findOneAndUpdate({ _id: id }, { status: '-1' }, {
 | 
				
			||||||
    new: true,
 | 
					      new: true,
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -223,8 +223,8 @@ export class UsersService {
 | 
				
			||||||
    const payload = { _id: community_id }
 | 
					    const payload = { _id: community_id }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let callback = this.clientCommunityApp
 | 
					    let callback = this.clientCommunityApp
 | 
				
			||||||
        .send<string>(pattern, payload)
 | 
					      .send<string>(pattern, payload)
 | 
				
			||||||
        .pipe( map((response: string) => ({ response })))
 | 
					      .pipe(map((response: string) => ({ response })))
 | 
				
			||||||
    const finalValue = await lastValueFrom(callback);
 | 
					    const finalValue = await lastValueFrom(callback);
 | 
				
			||||||
    const response = finalValue['response'];
 | 
					    const response = finalValue['response'];
 | 
				
			||||||
    const houses = response['houses'];
 | 
					    const houses = response['houses'];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue