error raise now locates loc
This commit is contained in:
@@ -18,10 +18,10 @@ from api_validations.validations_request import (
|
||||
PatchRecord,
|
||||
ListOptions,
|
||||
)
|
||||
from api_validations.validations_response import BuildResponse
|
||||
from ApiServices.api_handlers import AlchemyJsonResponse
|
||||
from api_events.events.abstract_class import MethodToEvent, ActionsSchema
|
||||
from api_objects.auth.token_objects import EmployeeTokenObject, OccupantTokenObject
|
||||
from api_validations.validations_response.building_responses import ListBuildingResponse
|
||||
|
||||
|
||||
class BuildListEventMethods(MethodToEvent):
|
||||
@@ -34,7 +34,10 @@ class BuildListEventMethods(MethodToEvent):
|
||||
"68b3b5ed-b74c-4a27-820f-3959214e94e9": "build_list",
|
||||
}
|
||||
__event_validation__ = {
|
||||
"68b3b5ed-b74c-4a27-820f-3959214e94e9": BuildResponse,
|
||||
"68b3b5ed-b74c-4a27-820f-3959214e94e9": (
|
||||
ListBuildingResponse,
|
||||
[Build.__language_model__],
|
||||
)
|
||||
}
|
||||
|
||||
@classmethod
|
||||
@@ -59,7 +62,7 @@ class BuildListEventMethods(MethodToEvent):
|
||||
result=records,
|
||||
cls_object=Build,
|
||||
filter_attributes=list_options,
|
||||
response_model=BuildResponse,
|
||||
response_model=ListBuildingResponse,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user