mirror of https://github.com/langgenius/dify.git
fix CI
This commit is contained in:
parent
25c88b3f5c
commit
03cc196965
|
|
@ -65,12 +65,16 @@ class WorkflowCommentService:
|
|||
|
||||
# Cache accounts on objects
|
||||
for comment in comments:
|
||||
comment._created_by_account_cache = account_map.get(comment.created_by)
|
||||
comment._resolved_by_account_cache = account_map.get(comment.resolved_by) if comment.resolved_by else None
|
||||
setattr(comment, "_created_by_account_cache", account_map.get(comment.created_by))
|
||||
setattr(
|
||||
comment,
|
||||
"_resolved_by_account_cache",
|
||||
account_map.get(comment.resolved_by) if comment.resolved_by else None,
|
||||
)
|
||||
for reply in comment.replies:
|
||||
reply._created_by_account_cache = account_map.get(reply.created_by)
|
||||
setattr(reply, "_created_by_account_cache", account_map.get(reply.created_by))
|
||||
for mention in comment.mentions:
|
||||
mention._mentioned_user_account_cache = account_map.get(mention.mentioned_user_id)
|
||||
setattr(mention, "_mentioned_user_account_cache", account_map.get(mention.mentioned_user_id))
|
||||
|
||||
@staticmethod
|
||||
def get_comment(tenant_id: str, app_id: str, comment_id: str, session: Session | None = None) -> WorkflowComment:
|
||||
|
|
|
|||
Loading…
Reference in New Issue