mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	refactor auto updateand invoice and estimate send
This commit is contained in:
		| @ -13,12 +13,12 @@ class Updater | ||||
| { | ||||
|     use SiteApi; | ||||
|  | ||||
|     public static function update($installed, $version) | ||||
|     public static function update($installed, $version, $isMinor) | ||||
|     { | ||||
|         $data = null; | ||||
|         $path = null; | ||||
|  | ||||
|         $url = '/download/'.$version; | ||||
|         $url = '/download/'.$version.'?type=update'; | ||||
|  | ||||
|         $response = static::getRemote($url, ['timeout' => 100, 'track_redirects' => true]); | ||||
|  | ||||
| @ -78,7 +78,9 @@ class Updater | ||||
|         File::deleteDirectory($temp_path2); | ||||
|  | ||||
|         try { | ||||
|             event(new UpdateFinished($installed, $version)); | ||||
|             if (!$isMinor) { | ||||
|                 event(new UpdateFinished($installed, $version)); | ||||
|             } | ||||
|  | ||||
|             return [ | ||||
|                 'success' => true, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user