This commit is contained in:
AyrisAI
2026-07-11 14:37:51 +03:00
parent 578b6d6696
commit 37069c786a
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -205,12 +205,12 @@ export const getLocationBySlug = cache(async function(slug: string) {
export async function getProjectsByService(serviceName: string) {
try {
// Search projects where the serviceName is in the title or categories
// Search projects where the serviceName is in the title or category
// serviceName is expected to be something like "Drone Çekimi"
return await sql`
SELECT * FROM projects
WHERE title ILIKE ${'%' + serviceName + '%'}
OR categories::text ILIKE ${'%' + serviceName + '%'}
OR category::text ILIKE ${'%' + serviceName + '%'}
ORDER BY created_at DESC
LIMIT 4
`;
File diff suppressed because one or more lines are too long