Add preview url to json
This commit is contained in:
		
							parent
							
								
									f9b61e35ae
								
							
						
					
					
						commit
						e1291673ea
					
				| @ -64,6 +64,7 @@ export default class ScreenshotRequest { | ||||
|     elapsed_time_s: number; | ||||
|     zip_url: string | null; | ||||
|     current_action: string; | ||||
|     preview: string; | ||||
|   }> { | ||||
|     return { | ||||
|       url: this.url, | ||||
| @ -89,6 +90,7 @@ export default class ScreenshotRequest { | ||||
|         this.status === "finished" | ||||
|           ? `/api/requests/${this.id}/all-screenshots` | ||||
|           : null, | ||||
|       preview: `/static/${this.id}/preview.png`, | ||||
|     }; | ||||
|   } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user