|
19 | 19 | from flask import Blueprint |
20 | 20 | from flask import request |
21 | 21 |
|
22 | | -from app.blueprints.rest.endpoints import response_api_error, response_api_not_found, response_api_deleted |
| 22 | +from app.blueprints.rest.endpoints import response_api_error |
| 23 | +from app.blueprints.rest.endpoints import response_api_not_found |
| 24 | +from app.blueprints.rest.endpoints import response_api_deleted |
| 25 | +from app.blueprints.rest.endpoints import response_api_success |
23 | 26 | from app.blueprints.rest.endpoints import response_api_created |
24 | 27 | from app.blueprints.access_controls import ac_api_return_access_denied |
25 | 28 | from app.blueprints.access_controls import ac_api_requires |
26 | 29 | from app.schema.marshables import CaseTaskSchema |
27 | | -from app.business.errors import BusinessProcessingError, ObjectNotFoundError |
28 | | -from app.business.tasks import tasks_create, tasks_get, tasks_delete |
| 30 | +from app.business.errors import BusinessProcessingError |
| 31 | +from app.business.errors import ObjectNotFoundError |
| 32 | +from app.business.tasks import tasks_create |
| 33 | +from app.business.tasks import tasks_get |
| 34 | +from app.business.tasks import tasks_delete |
29 | 35 | from app.models.authorization import CaseAccessLevel |
30 | 36 | from app.iris_engine.access_control.utils import ac_fast_check_current_user_has_case_access |
31 | 37 |
|
@@ -74,7 +80,7 @@ def get_case_task(case_id, identifier): |
74 | 80 | return ac_api_return_access_denied(caseid=task.task_case_id) |
75 | 81 |
|
76 | 82 | task_schema = CaseTaskSchema() |
77 | | - return response_api_created(task_schema.dump(task)) |
| 83 | + return response_api_success(task_schema.dump(task)) |
78 | 84 | except ObjectNotFoundError: |
79 | 85 | return response_api_not_found() |
80 | 86 |
|
|
0 commit comments