mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-1687] pass entire createdBy obj in user process constructor
This commit is contained in:
parent
31c3a5339a
commit
fac532faa1
@ -233,12 +233,7 @@ export class ProcessService extends TaskListService {
|
||||
.map((response: any) => {
|
||||
let comments: Comment[] = [];
|
||||
response.data.forEach((comment) => {
|
||||
let user = new LightUserRepresentation({
|
||||
id: comment.createdBy.id,
|
||||
email: comment.createdBy.email,
|
||||
firstName: comment.createdBy.firstName,
|
||||
lastName: comment.createdBy.lastName
|
||||
});
|
||||
let user = new LightUserRepresentation(comment.createdBy);
|
||||
comments.push(new Comment(comment.id, comment.message, comment.created, user));
|
||||
});
|
||||
return comments;
|
||||
|
Loading…
x
Reference in New Issue
Block a user