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