From f334997439a6a2ed172e58442c248a7559f3abd9 Mon Sep 17 00:00:00 2001 From: "vysakh.menon" Date: Thu, 26 Dec 2024 11:37:59 -0800 Subject: [PATCH] 24708 inserting to event_insert table for ORGBOOK sync --- colin-api/src/colin_api/models/filing.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/colin-api/src/colin_api/models/filing.py b/colin-api/src/colin_api/models/filing.py index dbc48c097..0d8fc8173 100644 --- a/colin-api/src/colin_api/models/filing.py +++ b/colin-api/src/colin_api/models/filing.py @@ -503,6 +503,14 @@ def _get_event_id(cls, cursor, corp_num: str, filing_dt: str, event_type: str = filing_dt=filing_dt, event_type=event_type ) + cursor.execute( + """ + INSERT INTO event_insert (event_id, corp_num, insert_date) + VALUES (:event_id, :corp_num, sysdate) + """, + event_id=event_id, + corp_num=corp_num + ) except Exception as err: current_app.logger.error('Error in filing: Failed to create new event.') raise err