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
3
@@ -81,6 +81,18 @@ const myRepository = {
@@ -81,6 +81,18 @@ const myRepository = {
const { rowCount } = await pool.query(query, values);
const { rowCount } = await pool.query(query, values);
return rowCount > 0;
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;
export default myRepository;
Loading