mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
move dao_create/dao_update fn to dao_utils
they're totally generic anyway
This commit is contained in:
@@ -73,3 +73,9 @@ def version_class(*version_options):
|
||||
|
||||
def dao_rollback():
|
||||
db.session.rollback()
|
||||
|
||||
|
||||
@transactional
|
||||
def dao_save_object(obj):
|
||||
# add/update object in db
|
||||
db.session.add(obj)
|
||||
|
||||
Reference in New Issue
Block a user