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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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();