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

fix: transactions 테이블에 insert 는 백엔드가 해줌

parent 6a4bdaeb
Branches
No related tags found
No related merge requests found
Pipeline #10805 passed
......@@ -108,7 +108,7 @@ def match_part_obj_into_db(_part, part_type):
def finalize_transaction(_cursor, _transaction_id, _user_id, _combination_id):
_cursor.execute("INSERT INTO transactions (id, user_id, combination_id) VALUES (%s, %s, %s);", (_transaction_id, _user_id, _combination_id))
_cursor.execute("UPDATE transactions SET combination_id=%s WHERE id=%s and user_id=%s;", (_combination_id, _transaction_id, _user_id,))
def func():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment