게시물 광고 배치 조정
This commit is contained in:
@@ -127,6 +127,7 @@ const mapSiteSettingsRow = (row) => ({
|
||||
adHomeFeedCode: row.ad_home_feed_code || '',
|
||||
adHomeInfeedCode: row.ad_home_infeed_code || '',
|
||||
adSidebarCode: row.ad_sidebar_code || '',
|
||||
adPostSidebarCode: row.ad_post_sidebar_code || '',
|
||||
adPostTopCode: row.ad_post_top_code || '',
|
||||
adPostInArticleCode: row.ad_post_in_article_code || '',
|
||||
adPostBottomCode: row.ad_post_bottom_code || '',
|
||||
@@ -903,6 +904,7 @@ export const updateSiteSettings = async (input) => {
|
||||
ad_home_feed_code,
|
||||
ad_home_infeed_code,
|
||||
ad_sidebar_code,
|
||||
ad_post_sidebar_code,
|
||||
ad_post_top_code,
|
||||
ad_post_in_article_code,
|
||||
ad_post_bottom_code,
|
||||
@@ -936,6 +938,7 @@ export const updateSiteSettings = async (input) => {
|
||||
${input.adHomeFeedCode || ''},
|
||||
${input.adHomeInfeedCode || ''},
|
||||
${input.adSidebarCode || ''},
|
||||
${input.adPostSidebarCode || ''},
|
||||
${input.adPostTopCode || ''},
|
||||
${input.adPostInArticleCode || ''},
|
||||
${input.adPostBottomCode || ''},
|
||||
@@ -969,6 +972,7 @@ export const updateSiteSettings = async (input) => {
|
||||
ad_home_feed_code = EXCLUDED.ad_home_feed_code,
|
||||
ad_home_infeed_code = EXCLUDED.ad_home_infeed_code,
|
||||
ad_sidebar_code = EXCLUDED.ad_sidebar_code,
|
||||
ad_post_sidebar_code = EXCLUDED.ad_post_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,
|
||||
|
||||
@@ -49,6 +49,7 @@ export const adminSiteSettingsInputSchema = z.object({
|
||||
adHomeFeedCode: z.string().max(50000).optional().default(''),
|
||||
adHomeInfeedCode: z.string().max(50000).optional().default(''),
|
||||
adSidebarCode: z.string().max(50000).optional().default(''),
|
||||
adPostSidebarCode: z.string().max(50000).optional().default(''),
|
||||
adPostTopCode: z.string().max(50000).optional().default(''),
|
||||
adPostInArticleCode: z.string().max(50000).optional().default(''),
|
||||
adPostBottomCode: z.string().max(50000).optional().default('')
|
||||
|
||||
@@ -40,6 +40,7 @@ export const getDefaultSiteSettings = () => {
|
||||
adHomeFeedCode: '',
|
||||
adHomeInfeedCode: '',
|
||||
adSidebarCode: '',
|
||||
adPostSidebarCode: '',
|
||||
adPostTopCode: '',
|
||||
adPostInArticleCode: '',
|
||||
adPostBottomCode: '',
|
||||
|
||||
Reference in New Issue
Block a user