mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	Filtering of API-Results (#985)
* Add FilteredApiResponse * Use FilteredApiResponse for Generic-Entity-Search * Use FilteredApiResponse for Recipe-Fullfillment * Use FilteredApiResponse for GetUsers * Use FilteredApiResponse for current Tasks * Use FilteredApiResponse for ProductStockEntries & ProductStockLocations * Use FilteredApiResponse for current chores * Use FilteredApiResponse for batteries-current * Fix missing highlighting of "< X days" * Keep to use existing views Co-authored-by: Bernd Bestel <bernd@berrnd.de>
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							60f3d900e8
						
					
				
				
					commit
					32a4f81f62
				
			| @@ -4,6 +4,8 @@ namespace Grocy\Services; | ||||
|  | ||||
| #use \Grocy\Services\StockService; | ||||
|  | ||||
| use LessQL\Result; | ||||
|  | ||||
| class RecipesService extends BaseService | ||||
| { | ||||
| 	const RECIPE_TYPE_MEALPLAN_DAY = 'mealplan-day'; | ||||
| @@ -82,10 +84,9 @@ class RecipesService extends BaseService | ||||
| 		return $this->getDataBaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ); | ||||
| 	} | ||||
|  | ||||
| 	public function GetRecipesResolved() | ||||
| 	public function GetRecipesResolved(): Result | ||||
| 	{ | ||||
| 		$sql = 'SELECT * FROM recipes_resolved'; | ||||
| 		return $this->getDataBaseService()->ExecuteDbQuery($sql)->fetchAll(\PDO::FETCH_OBJ); | ||||
| 		return $this->getDatabase()->recipes_resolved(); | ||||
| 	} | ||||
|  | ||||
| 	public function __construct() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user