릴리스: v1.4.31 legacy game 호환층 제거 마감
This commit is contained in:
@@ -24,7 +24,7 @@ const FREEFORM_TOPIC_ID = 'freeform'
|
||||
const FREEFORM_DEFAULT_TITLE = '직접 티어표 만들기'
|
||||
|
||||
function normalizePoolItem(item) {
|
||||
if (!item || !['game', 'template'].includes(item.origin) || typeof item.src !== 'string') return item
|
||||
if (!item || item.origin !== 'template' || typeof item.src !== 'string') return item
|
||||
if (item.src.startsWith('/uploads/')) return item
|
||||
|
||||
try {
|
||||
@@ -83,7 +83,7 @@ const templateRequestSchema = z.object({
|
||||
id: z.string().min(1),
|
||||
src: z.string().min(1),
|
||||
label: z.string().min(1).max(60),
|
||||
origin: z.enum(['template', 'game', 'custom']).default('template'),
|
||||
origin: z.enum(['template', 'custom']).default('template'),
|
||||
})
|
||||
),
|
||||
})
|
||||
@@ -112,7 +112,7 @@ const tierListUpsertSchema = z.object({
|
||||
id: z.string().min(1),
|
||||
src: z.string().min(1),
|
||||
label: z.string().min(1).max(60),
|
||||
origin: z.enum(['template', 'game', 'custom']).default('template'),
|
||||
origin: z.enum(['template', 'custom']).default('template'),
|
||||
})
|
||||
),
|
||||
}).superRefine((value, ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user