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

fix: eslint 적용 및 오타 수정

parent 9406212e
Branches
No related tags found
1 merge request!16getCombinationId 오타 수정
Pipeline #10801 passed
......@@ -37,8 +37,8 @@ const myRepository = {
async getCombinationIdByTransactionId(transactionId) {
const query = `
SELECT combination_id
FROM Pcregister_Transection
WHERE transection_id = $1
FROM pcregister_transection
WHERE transaction_id = $1
`;
const values = [transactionId];
const { rows } = await pool.query(query, values);
......
......@@ -33,7 +33,11 @@ myRouter.patch(
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);
})
......
......@@ -89,9 +89,9 @@ const myService = {
const combinationId =
await myRepository.getCombinationIdByTransactionId(transactionId);
res.sendResponse('', 200, {
return {
combinationId: combinationId || null,
});
};
} catch {
throw new ReportableError(
500,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment