릴리스: v1.4.29 레거시 game 흔적 최종 호환층 정리

This commit is contained in:
2026-04-02 21:23:06 +09:00
parent b3575d59a6
commit 9f6cb33bbd
9 changed files with 38 additions and 26 deletions

View File

@@ -631,7 +631,7 @@ router.delete('/custom-items/:itemId', requireAdmin, async (req, res) => {
}
if (!target.canDelete) return res.status(409).json({ error: 'item_locked' })
if (target.linkedGames.length > 0) return res.status(409).json({ error: 'item_linked' })
if (target.linkedTemplates.length > 0) return res.status(409).json({ error: 'item_linked' })
if (target.usageCount > 0) return res.status(409).json({ error: 'item_in_use' })
const items = await findCustomItemsByIds([target.id])