fix: remove featured filter from models endpoint

The directus_users table doesn't have a 'featured' column, causing
SQL errors when the /sexy/models endpoint tried to filter by it.
Removed the featured parameter check to fix 500 errors on homepage.

Error was: "column u.featured does not exist"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Valknar XXX
2025-10-28 11:30:14 +01:00
parent 6232cc58f0
commit b8fdcb1193

View File

@@ -71,9 +71,6 @@ export default {
.where("r.name", "Model")
.orderBy("u.id", "desc");
if (featured === "true") {
query = query.where("u.featured", true);
}
if (limit) {
query = query.limit(parseInt(limit as string));
@@ -216,9 +213,7 @@ export default {
.where("a.publish_date", "<=", new Date().toISOString())
.orderBy("a.publish_date", "desc");
if (featured === "true") {
query = query.where("a.featured", true);
}
if (limit) {
query = query.limit(parseInt(limit as string));