Skip to content
Snippets Groups Projects

pc 삭제 기능 추가

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

Files

+ 12
0
@@ -81,6 +81,18 @@ const myRepository = {
const { rowCount } = await pool.query(query, values);
return rowCount > 0;
},
async deleteCombinationById(combinationId) {
const query = `
UPDATE combinations
SET owner_id = NULL
WHERE id = $1
`;
const values = [combinationId];
const { rowCount } = await pool.query(query, values);
return rowCount > 0;
}
};
export default myRepository;
Loading