Skip to content
Snippets Groups Projects
Commit 48c64d5f authored by Lee WooChang's avatar Lee WooChang
Browse files

fix: eslint 적용 및 오타 수정

parent 9406212e
No related branches found
No related tags found
1 merge request!16getCombinationId 오타 수정
Pipeline #10801 passed
...@@ -37,8 +37,8 @@ const myRepository = { ...@@ -37,8 +37,8 @@ const myRepository = {
async getCombinationIdByTransactionId(transactionId) { async getCombinationIdByTransactionId(transactionId) {
const query = ` const query = `
SELECT combination_id SELECT combination_id
FROM Pcregister_Transection FROM pcregister_transection
WHERE transection_id = $1 WHERE transaction_id = $1
`; `;
const values = [transactionId]; const values = [transactionId];
const { rows } = await pool.query(query, values); const { rows } = await pool.query(query, values);
......
...@@ -33,7 +33,11 @@ myRouter.patch( ...@@ -33,7 +33,11 @@ myRouter.patch(
throw new ReportableError(400, '유효한 새로운 이름이 필요합니다.'); throw new ReportableError(400, '유효한 새로운 이름이 필요합니다.');
} }
const result = await myService.updateCombinationName(userId, combinationId, newName); const result = await myService.updateCombinationName(
userId,
combinationId,
newName
);
return res.status(200).json(result); return res.status(200).json(result);
}) })
......
...@@ -89,9 +89,9 @@ const myService = { ...@@ -89,9 +89,9 @@ const myService = {
const combinationId = const combinationId =
await myRepository.getCombinationIdByTransactionId(transactionId); await myRepository.getCombinationIdByTransactionId(transactionId);
res.sendResponse('', 200, { return {
combinationId: combinationId || null, combinationId: combinationId || null,
}); };
} catch { } catch {
throw new ReportableError( throw new ReportableError(
500, 500,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment