From 6ffe614a0ead2237dcf5480eb28685327d1b9e0f Mon Sep 17 00:00:00 2001 From: formsdev <136701234+formsdev@users.noreply.github.com> Date: Fri, 10 Nov 2023 19:17:07 +0530 Subject: [PATCH] fix template api for public list (#237) --- app/Http/Controllers/TemplateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/TemplateController.php b/app/Http/Controllers/TemplateController.php index 04a1b2acc..1137a5da8 100644 --- a/app/Http/Controllers/TemplateController.php +++ b/app/Http/Controllers/TemplateController.php @@ -35,7 +35,7 @@ public function index(Request $request) } }) ->when(!Auth::check(), function ($query) { - return $query->publiclyListed(); + $query->where('publicly_listed', true); }) ->orderByDesc('created_at') ->get();