mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Add versioning to Organisations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from app import db
|
||||
from app.dao.dao_utils import transactional
|
||||
from app.dao.dao_utils import transactional, version_class
|
||||
from app.models import Organisation
|
||||
|
||||
|
||||
@@ -12,10 +12,12 @@ def dao_get_organisation_by_id(org_id):
|
||||
|
||||
|
||||
@transactional
|
||||
@version_class(Organisation)
|
||||
def dao_create_organisation(organisation):
|
||||
db.session.add(organisation)
|
||||
|
||||
|
||||
@transactional
|
||||
@version_class(Organisation)
|
||||
def dao_update_organisation(organisation):
|
||||
db.session.add(organisation)
|
||||
|
||||
Reference in New Issue
Block a user