File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ export class ServiceRequestController {
7070      success : true , 
7171      data : result . data , 
7272      message :
73-         result . admin  !=  false 
73+         result . isManong  !=  false 
7474          ? 'Proceed to the client’s location.' 
7575          : 'Your Manong is on the way!' , 
76-       admin : result . admin , 
76+       isManong : result . isManong , 
7777    } ; 
7878  } 
7979
@@ -106,7 +106,7 @@ export class ServiceRequestController {
106106        parseInt ( limit ) , 
107107      ) ; 
108108
109-     return  {  success : true ,  data : requests . data ,  admin : requests . admin  } ; 
109+     return  {  success : true ,  data : requests . data ,  isManong : requests . isManong  } ; 
110110  } 
111111
112112  @UseGuards ( JwtAuthGuard ) 
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export class ServiceRequestService {
175175      where  =  {  userId } ; 
176176    } 
177177
178-     const  admin   =   role   ==   UserRole . admin   ||  role  ==  UserRole . manong ; 
178+     const  isManong   =  role  ==  UserRole . manong ; 
179179
180180    const  requests  =  await  this . prisma . serviceRequest . findMany ( { 
181181      where : where , 
@@ -216,7 +216,7 @@ export class ServiceRequestService {
216216        ...req , 
217217        imagesPath : req . imagesPath , 
218218      } ) ) , 
219-       admin :  admin , 
219+       isManong :  isManong , 
220220    } ; 
221221  } 
222222
@@ -486,7 +486,7 @@ export class ServiceRequestService {
486486      where  =  {  userId } ; 
487487    } 
488488
489-     const  admin   =   role   ==   UserRole . admin   ||  role  ==  UserRole . manong ; 
489+     const  isManong   =  role  ==  UserRole . manong ; 
490490
491491    const  ongoing  =  await  this . prisma . serviceRequest . findFirst ( { 
492492      where : {  ...where ,  status : 'inprogress'  } , 
@@ -513,7 +513,7 @@ export class ServiceRequestService {
513513
514514    return  { 
515515      data : ongoing , 
516-       admin :  admin , 
516+       isManong :  isManong , 
517517    } ; 
518518  } 
519519
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments