Skip to content

Commit 42a81da

Browse files
committed
fix: sitemap only includes verified coupons (verified = 1)
1 parent 0d81682 commit 42a81da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/web/app/sitemap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
2121
const db = getDb();
2222

2323
const stores = await db.sql`SELECT slug, created_at FROM stores ORDER BY created_at DESC`;
24-
const coupons = await db.sql`SELECT id, created_at FROM coupons ORDER BY created_at DESC`;
24+
const coupons = await db.sql`SELECT id, created_at FROM coupons WHERE verified = 1 ORDER BY created_at DESC`;
2525

2626
const storeRoutes: MetadataRoute.Sitemap = stores.map((s: { slug: string; created_at: string }) => ({
2727
url: `${BASE}/stores/${s.slug}`,

0 commit comments

Comments
 (0)