mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Merge branch 'main' of https://github.com/GSA/notifications-api into invite-expiration-fix
This commit is contained in:
@@ -827,3 +827,11 @@ def dao_close_out_delivery_receipts():
|
||||
current_app.logger.info(
|
||||
f"Marked {result.rowcount} notifications as technical failures"
|
||||
)
|
||||
|
||||
|
||||
def dao_batch_insert_notifications(batch):
|
||||
|
||||
db.session.bulk_save_objects(batch)
|
||||
db.session.commit()
|
||||
current_app.logger.info(f"Batch inserted notifications: {len(batch)}")
|
||||
return len(batch)
|
||||
|
||||
Reference in New Issue
Block a user