릴리스: v1.4.27 내부 레거시 이름층 정리
This commit is contained in:
@@ -1468,22 +1468,6 @@ async function createCustomItem({ id, ownerId, src, label }) {
|
||||
return { id, ownerId, src, label, origin: 'custom', createdAt }
|
||||
}
|
||||
|
||||
const listGames = listTopics
|
||||
const findGameById = findTopicById
|
||||
const listGameItems = listTopicItems
|
||||
const findGameItemById = findTopicItemById
|
||||
const getGameDetail = getTopicDetail
|
||||
const createGame = createTopic
|
||||
const updateGameThumbnail = updateTopicThumbnail
|
||||
const updateGameVisibility = updateTopicVisibility
|
||||
const createGameItem = createTopicItem
|
||||
const updateGameItemLabel = updateTopicItemLabel
|
||||
const updateGameItemDisplayOrder = updateTopicItemDisplayOrder
|
||||
const countTierListsUsingGameItem = countTierListsUsingTopicItem
|
||||
const deleteGameItem = deleteTopicItem
|
||||
const deleteGame = deleteTopic
|
||||
const updateGameDisplayOrder = updateTopicDisplayOrder
|
||||
|
||||
async function syncOwnedCustomItemLabels({ ownerId, items }) {
|
||||
const customItems = Array.from(
|
||||
new Map(
|
||||
@@ -2522,9 +2506,6 @@ async function unfavoriteTopic({ userId, topicId }) {
|
||||
await query('DELETE FROM favorite_topics WHERE user_id = ? AND topic_id = ?', [userId, topicId])
|
||||
}
|
||||
|
||||
const favoriteGame = favoriteTopic
|
||||
const unfavoriteGame = unfavoriteTopic
|
||||
|
||||
module.exports = {
|
||||
DB_NAME,
|
||||
ensureData,
|
||||
@@ -2547,14 +2528,6 @@ module.exports = {
|
||||
createTopic,
|
||||
updateTopicThumbnail,
|
||||
updateTopicVisibility,
|
||||
listGames,
|
||||
findGameById,
|
||||
listGameItems,
|
||||
findGameItemById,
|
||||
getGameDetail,
|
||||
createGame,
|
||||
updateGameThumbnail,
|
||||
updateGameVisibility,
|
||||
findImageAssetByHash,
|
||||
findImageAssetBySrc,
|
||||
findImageAssetById,
|
||||
@@ -2578,15 +2551,8 @@ module.exports = {
|
||||
deleteTopicItem,
|
||||
deleteTopic,
|
||||
updateTopicDisplayOrder,
|
||||
createGameItem,
|
||||
updateGameItemLabel,
|
||||
updateGameItemDisplayOrder,
|
||||
countTierListsUsingGameItem,
|
||||
updateCustomItemLabel,
|
||||
updateImageAssetLabel,
|
||||
deleteGameItem,
|
||||
deleteGame,
|
||||
updateGameDisplayOrder,
|
||||
createCustomItem,
|
||||
findCustomItemById,
|
||||
listCustomItems,
|
||||
@@ -2602,8 +2568,6 @@ module.exports = {
|
||||
unfavoriteTopic,
|
||||
favoriteTierList,
|
||||
unfavoriteTierList,
|
||||
favoriteGame,
|
||||
unfavoriteGame,
|
||||
deleteTierList,
|
||||
findCustomItemsByIds,
|
||||
deleteCustomItems,
|
||||
@@ -2614,5 +2578,4 @@ module.exports = {
|
||||
listAdminTemplateRequests,
|
||||
updateTemplateRequestStatus,
|
||||
updateTemplateRequestTargetTopic,
|
||||
updateTemplateRequestTargetGame: updateTemplateRequestTargetTopic,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user