게시물 인아티클 광고 슬롯 추가

This commit is contained in:
2026-06-05 16:09:47 +09:00
parent 5c93643949
commit cc9e5949fa
14 changed files with 121 additions and 9 deletions

View File

@@ -128,6 +128,7 @@ const mapSiteSettingsRow = (row) => ({
adHomeInfeedCode: row.ad_home_infeed_code || '',
adSidebarCode: row.ad_sidebar_code || '',
adPostTopCode: row.ad_post_top_code || '',
adPostInArticleCode: row.ad_post_in_article_code || '',
adPostBottomCode: row.ad_post_bottom_code || '',
updatedAt: row.updated_at.toISOString()
})
@@ -903,6 +904,7 @@ export const updateSiteSettings = async (input) => {
ad_home_infeed_code,
ad_sidebar_code,
ad_post_top_code,
ad_post_in_article_code,
ad_post_bottom_code,
updated_at
)
@@ -935,6 +937,7 @@ export const updateSiteSettings = async (input) => {
${input.adHomeInfeedCode || ''},
${input.adSidebarCode || ''},
${input.adPostTopCode || ''},
${input.adPostInArticleCode || ''},
${input.adPostBottomCode || ''},
now()
)
@@ -967,6 +970,7 @@ export const updateSiteSettings = async (input) => {
ad_home_infeed_code = EXCLUDED.ad_home_infeed_code,
ad_sidebar_code = EXCLUDED.ad_sidebar_code,
ad_post_top_code = EXCLUDED.ad_post_top_code,
ad_post_in_article_code = EXCLUDED.ad_post_in_article_code,
ad_post_bottom_code = EXCLUDED.ad_post_bottom_code,
updated_at = now()
RETURNING *