Remove unused expandable deal UI and review_notes field

Simplify the review page by removing the expandable
This commit is contained in:
2026-05-06 01:54:23 +08:00
parent 883c03bae1
commit 1d7a27c105
2 changed files with 22 additions and 104 deletions
+2 -5
View File
@@ -123,7 +123,7 @@ router.get("/", (req, res) => {
// PUT /api/deals/:id — 编辑分类/确认
router.put("/:id", (req, res) => {
const db = getDB();
const { category, ai_description, reviewed, review_notes, tags } = req.body;
const { category, ai_description, reviewed, tags } = req.body;
const sets = [];
const params = [];
if (category !== undefined) {
@@ -139,10 +139,7 @@ router.put("/:id", (req, res) => {
params.push(reviewed);
if (reviewed) sets.push("reviewed_at = CURRENT_TIMESTAMP");
}
if (review_notes !== undefined) {
sets.push("review_notes = ?");
params.push(review_notes);
}
if (tags !== undefined) {
sets.push("tags = ?");
params.push(JSON.stringify(tags));