메인 인피드 광고 슬롯 추가
This commit is contained in:
@@ -125,6 +125,7 @@ const mapSiteSettingsRow = (row) => ({
|
||||
customHeadCode: row.custom_head_code || '',
|
||||
customFooterCode: row.custom_footer_code || '',
|
||||
adHomeFeedCode: row.ad_home_feed_code || '',
|
||||
adHomeInfeedCode: row.ad_home_infeed_code || '',
|
||||
adSidebarCode: row.ad_sidebar_code || '',
|
||||
adPostTopCode: row.ad_post_top_code || '',
|
||||
adPostBottomCode: row.ad_post_bottom_code || '',
|
||||
@@ -899,6 +900,7 @@ export const updateSiteSettings = async (input) => {
|
||||
custom_head_code,
|
||||
custom_footer_code,
|
||||
ad_home_feed_code,
|
||||
ad_home_infeed_code,
|
||||
ad_sidebar_code,
|
||||
ad_post_top_code,
|
||||
ad_post_bottom_code,
|
||||
@@ -930,6 +932,7 @@ export const updateSiteSettings = async (input) => {
|
||||
${input.customHeadCode || ''},
|
||||
${input.customFooterCode || ''},
|
||||
${input.adHomeFeedCode || ''},
|
||||
${input.adHomeInfeedCode || ''},
|
||||
${input.adSidebarCode || ''},
|
||||
${input.adPostTopCode || ''},
|
||||
${input.adPostBottomCode || ''},
|
||||
@@ -961,6 +964,7 @@ export const updateSiteSettings = async (input) => {
|
||||
custom_head_code = EXCLUDED.custom_head_code,
|
||||
custom_footer_code = EXCLUDED.custom_footer_code,
|
||||
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_top_code = EXCLUDED.ad_post_top_code,
|
||||
ad_post_bottom_code = EXCLUDED.ad_post_bottom_code,
|
||||
|
||||
@@ -47,6 +47,7 @@ export const adminSiteSettingsInputSchema = z.object({
|
||||
customHeadCode: z.string().max(50000).optional().default(''),
|
||||
customFooterCode: z.string().max(50000).optional().default(''),
|
||||
adHomeFeedCode: z.string().max(50000).optional().default(''),
|
||||
adHomeInfeedCode: z.string().max(50000).optional().default(''),
|
||||
adSidebarCode: z.string().max(50000).optional().default(''),
|
||||
adPostTopCode: z.string().max(50000).optional().default(''),
|
||||
adPostBottomCode: z.string().max(50000).optional().default('')
|
||||
|
||||
@@ -38,6 +38,7 @@ export const getDefaultSiteSettings = () => {
|
||||
customHeadCode: '',
|
||||
customFooterCode: '',
|
||||
adHomeFeedCode: '',
|
||||
adHomeInfeedCode: '',
|
||||
adSidebarCode: '',
|
||||
adPostTopCode: '',
|
||||
adPostBottomCode: '',
|
||||
|
||||
Reference in New Issue
Block a user