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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user