diff --git a/src/repositories/myRepository.js b/src/repositories/myRepository.js index 213a49fb24ac36b47fc1a67a368a82294c990c56..346ea42f13aff6816062e7bd20cee3db6d702ca7 100644 --- a/src/repositories/myRepository.js +++ b/src/repositories/myRepository.js @@ -82,17 +82,17 @@ const myRepository = { return rowCount > 0; }, - async deleteCombinationById(combinationId) { - const query = ` + async deleteCombinationById(combinationId) { + const query = ` UPDATE combinations SET owner_id = NULL WHERE id = $1 `; - const values = [combinationId]; + const values = [combinationId]; - const { rowCount } = await pool.query(query, values); - return rowCount > 0; -} + const { rowCount } = await pool.query(query, values); + return rowCount > 0; + }, }; export default myRepository;