From 32ee46c47da04c60d0b1b09a93a01ed2a0cb02d6 Mon Sep 17 00:00:00 2001 From: LeeWxx <dnckd0903@naver.com> Date: Sun, 8 Dec 2024 15:39:42 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20eslint=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/repositories/myRepository.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/repositories/myRepository.js b/src/repositories/myRepository.js index 213a49f..346ea42 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; -- GitLab