Skip to content
Snippets Groups Projects

PC 이름 변경기능 추가

Merged Lee WooChang requested to merge feat/update-pc-name into main
3 files
+ 69
0
Compare changes
  • Side-by-side
  • Inline

Files

+ 12
0
@@ -45,6 +45,18 @@ const myRepository = {
return rows.length > 0 ? rows[0].combination_id : null;
},
async updateCombinationName(combinationId, newName) {
const query = `
UPDATE combinations
SET name = $1, updated_at = NOW()
WHERE id = $2
`;
const values = [newName, combinationId];
const { rowCount } = await pool.query(query, values);
return rowCount > 0;
},
};
export default myRepository;
Loading