|
@@ -15,7 +15,7 @@ from tracim import hapic, TracimRequest
|
15
|
15
|
from tracim.lib.core.workspace import WorkspaceApi
|
16
|
16
|
from tracim.views.controllers import Controller
|
17
|
17
|
from tracim.views.core_api.schemas import UserIdPathSchema
|
18
|
|
-from tracim.views.core_api.schemas import ContentDigestSchema
|
|
18
|
+from tracim.views.core_api.schemas import UserContentDigestSchema
|
19
|
19
|
from tracim.views.core_api.schemas import ExtendedFilterQuerySchema
|
20
|
20
|
from tracim.views.core_api.schemas import WorkspaceDigestSchema
|
21
|
21
|
from tracim.models.contents import ContentTypeLegacy as ContentType
|
|
@@ -50,7 +50,7 @@ class UserController(Controller):
|
50
|
50
|
@require_same_user_or_profile(Group.TIM_ADMIN)
|
51
|
51
|
@hapic.input_path(UserIdPathSchema())
|
52
|
52
|
@hapic.input_query(ExtendedFilterQuerySchema())
|
53
|
|
- @hapic.output_body(ContentDigestSchema(many=True))
|
|
53
|
+ @hapic.output_body(UserContentDigestSchema(many=True))
|
54
|
54
|
def last_active_content(self, context, request: TracimRequest, hapic_data=None): # nopep8
|
55
|
55
|
"""
|
56
|
56
|
Get last_active_content for user
|
|
@@ -81,7 +81,8 @@ class UserController(Controller):
|
81
|
81
|
limit=content_filter.limit or None,
|
82
|
82
|
)
|
83
|
83
|
return [
|
84
|
|
- api.get_content_in_context(content) for content in last_actives
|
|
84
|
+ api.get_content_in_context(content)
|
|
85
|
+ for content in last_actives
|
85
|
86
|
]
|
86
|
87
|
|
87
|
88
|
def bind(self, configurator: Configurator) -> None:
|