File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed 
apps/webapp/app/v3/models Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,10 @@ type WorkerDeploymentWithWorkerTasks = Prisma.WorkerDeploymentGetPayload<{
2121export  async  function  findCurrentWorkerDeployment ( 
2222  environmentId : string 
2323) : Promise < WorkerDeploymentWithWorkerTasks  |  undefined >  { 
24-   const  promotion  =  await  prisma . workerDeploymentPromotion . findUnique ( { 
24+   const  promotion  =  await  prisma . workerDeploymentPromotion . findFirst ( { 
2525    where : { 
26-       environmentId_label : { 
27-         environmentId, 
28-         label : CURRENT_DEPLOYMENT_LABEL , 
29-       } , 
26+       environmentId, 
27+       label : CURRENT_DEPLOYMENT_LABEL , 
3028    } , 
3129    include : { 
3230      deployment : { 
@@ -66,7 +64,7 @@ export async function findCurrentWorkerFromEnvironment(
6664export  async  function  getWorkerDeploymentFromWorker ( 
6765  workerId : string 
6866) : Promise < WorkerDeploymentWithWorkerTasks  |  undefined >  { 
69-   const  worker  =  await  prisma . backgroundWorker . findUnique ( { 
67+   const  worker  =  await  prisma . backgroundWorker . findFirst ( { 
7068    where : { 
7169      id : workerId , 
7270    } , 
@@ -91,7 +89,7 @@ export async function getWorkerDeploymentFromWorker(
9189export  async  function  getWorkerDeploymentFromWorkerTask ( 
9290  workerTaskId : string 
9391) : Promise < WorkerDeploymentWithWorkerTasks  |  undefined >  { 
94-   const  workerTask  =  await  prisma . backgroundWorkerTask . findUnique ( { 
92+   const  workerTask  =  await  prisma . backgroundWorkerTask . findFirst ( { 
9593    where : { 
9694      id : workerTaskId , 
9795    } , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments