mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Rename database management functions.
Rename @transactional to @autocommit. Rename nested_transaction to tranaction.
This commit is contained in:
@@ -2,7 +2,7 @@ from flask import Blueprint, current_app, jsonify, request
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
from sqlalchemy.orm.exc import NoResultFound
|
||||
|
||||
from app.dao.dao_utils import transactional
|
||||
from app.dao.dao_utils import autocommit
|
||||
from app.dao.service_user_dao import (
|
||||
dao_get_active_service_users,
|
||||
dao_get_service_user,
|
||||
@@ -104,7 +104,7 @@ def delete_template_folder(service_id, template_folder_id):
|
||||
|
||||
@template_folder_blueprint.route('/contents', methods=['POST'])
|
||||
@template_folder_blueprint.route('/<uuid:target_template_folder_id>/contents', methods=['POST'])
|
||||
@transactional
|
||||
@autocommit
|
||||
def move_to_template_folder(service_id, target_template_folder_id=None):
|
||||
data = request.get_json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user