Skip to content
Snippets Groups Projects
Commit cdfbd3ec authored by Eunhak Lee's avatar Eunhak Lee
Browse files

Merge branch 'hotfix/sql' into 'main'

hotfix: transactions 테이블 구조 일치

See merge request !17
parents 5c0b6b15 69a85b39
Branches
No related tags found
1 merge request!17hotfix: transactions 테이블 구조 일치
Pipeline #10804 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 transactions
WHERE transaction_id = $1 WHERE id = $1
`; `;
const values = [transactionId]; const values = [transactionId];
const { rows } = await pool.query(query, values); const { rows } = await pool.query(query, values);
......
...@@ -92,10 +92,11 @@ const myService = { ...@@ -92,10 +92,11 @@ const myService = {
return { return {
combinationId: combinationId || null, combinationId: combinationId || null,
}; };
} catch { } catch (e) {
throw new ReportableError( throw new ReportableError(
500, 500,
'등록 코드 상태를 확인하는 중 문제가 발생했습니다.' '등록 코드 상태를 확인하는 중 문제가 발생했습니다.',
e
); );
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment