fix template api for public list (#237)

This commit is contained in:
formsdev
2023-11-10 19:17:07 +05:30
committed by GitHub
parent 9e2bf1c280
commit 6ffe614a0e

View File

@@ -35,7 +35,7 @@ class TemplateController extends Controller
} }
}) })
->when(!Auth::check(), function ($query) { ->when(!Auth::check(), function ($query) {
return $query->publiclyListed(); $query->where('publicly_listed', true);
}) })
->orderByDesc('created_at') ->orderByDesc('created_at')
->get(); ->get();