릴리스: v1.3.45 템플릿 요청 저장 오류 수정
This commit is contained in:
@@ -2021,6 +2021,7 @@ async function saveTierList({
|
||||
return findTierListById(existing.id, authorId)
|
||||
}
|
||||
|
||||
const nextId = id || nanoid()
|
||||
const createdAt = now()
|
||||
await query(
|
||||
`
|
||||
@@ -2029,9 +2030,9 @@ async function saveTierList({
|
||||
)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
`,
|
||||
[id, authorId, gameId, title, nextThumbnailSrc, description || '', isPublic ? 1 : 0, showCharacterNames ? 1 : 0, sourceTierListId || null, sourceSnapshotTitle || '', sourceSnapshotAuthor || '', serializeJson(groups), serializeJson(pool), createdAt, createdAt]
|
||||
[nextId, authorId, gameId, title, nextThumbnailSrc, description || '', isPublic ? 1 : 0, showCharacterNames ? 1 : 0, sourceTierListId || null, sourceSnapshotTitle || '', sourceSnapshotAuthor || '', serializeJson(groups), serializeJson(pool), createdAt, createdAt]
|
||||
)
|
||||
return findTierListById(id, authorId)
|
||||
return findTierListById(nextId, authorId)
|
||||
}
|
||||
|
||||
async function duplicateTierListForUser({ tierList, targetUserId }) {
|
||||
|
||||
Reference in New Issue
Block a user