Remove unused expandable deal UI and review_notes field
Simplify the review page by removing the expandable
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user