changed some logging levels and replaced ach_api_log_temp with ach_api_log table
This commit is contained in:
@@ -83,7 +83,7 @@ class Repository:
|
||||
|
||||
# Execute batch insert
|
||||
insert_sql = """
|
||||
INSERT INTO ach_api_log_temp (
|
||||
INSERT INTO ach_api_log (
|
||||
narration, status, bankcode, jrnl_id,
|
||||
tran_date, cbs_acct, tran_amt, TXNIND
|
||||
) VALUES (
|
||||
@@ -237,13 +237,13 @@ class Repository:
|
||||
try:
|
||||
cursor = conn.cursor()
|
||||
|
||||
# Check if ach_api_log_temp table exists
|
||||
# Check if ach_api_log table exists
|
||||
try:
|
||||
cursor.execute("SELECT COUNT(*) FROM ach_api_log_temp WHERE ROWNUM = 1")
|
||||
logger.info("✓ ach_api_log_temp table exists")
|
||||
cursor.execute("SELECT COUNT(*) FROM ach_api_log WHERE ROWNUM = 1")
|
||||
logger.info("✓ ach_api_log table exists")
|
||||
except Exception as e:
|
||||
logger.error(f"✗ ach_api_log_temp table not found: {e}")
|
||||
raise SystemExit("FATAL: ach_api_log_temp table must be created manually before running this application")
|
||||
logger.error(f"✗ ach_api_log table not found: {e}")
|
||||
raise SystemExit("FATAL: ach_api_log table must be created manually before running this application")
|
||||
|
||||
# Check if ach_processed_files table exists
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user