Skip to content

Commit a71e19e

Browse files
committed
ads: Use cta if title not defined
1 parent 62c5148 commit a71e19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/app/api/v1/ads/_post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export async function postAds(params: {
145145
await db.insert(schema.adImpression).values({
146146
user_id: userId,
147147
ad_text: ad.adText,
148-
title: ad.title || '',
148+
title: ad.title || ad.cta || '',
149149
url: ad.url,
150150
favicon: ad.favicon || '',
151151
click_url: ad.clickUrl,

0 commit comments

Comments
 (0)