mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复特定情况下分类改变错误
This commit is contained in:
@@ -346,7 +346,11 @@ async function updatePostsCollect(
|
||||
if (postRes.length === 0) {
|
||||
return false;
|
||||
}
|
||||
if (force) {
|
||||
const unclassifiedSql = "SELECT * FROM UFMap where postId = ?";
|
||||
const unclassifiedRes: TGApp.Sqlite.UserCollection.UFMap[] = await db.select(unclassifiedSql, [
|
||||
postIds[i],
|
||||
]);
|
||||
if (force && unclassifiedRes.length > 0) {
|
||||
const deleteCheck = await deletePostCollect(postIds[i]);
|
||||
if (!deleteCheck) return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user