Skip to content

Commit

Permalink
feat(uaa-integration): Parse App Activity item (#3386)
Browse files Browse the repository at this point in the history
  • Loading branch information
JChan106 committed Aug 22, 2023
1 parent 3989675 commit 44fd12b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/Feed.js
Expand Up @@ -181,7 +181,11 @@ export const getParsedFileActivitiesResponse = (response?: { entries: FileActivi
return annotationItem;
}
case FILE_ACTIVITY_TYPE_APP_ACTIVITY: {
return { ...source[FILE_ACTIVITY_TYPE_APP_ACTIVITY] };
const appActivityItem = { ...source[FILE_ACTIVITY_TYPE_APP_ACTIVITY] };

appActivityItem.created_at = appActivityItem.occurred_at;

return appActivityItem;
}

default: {
Expand Down
1 change: 1 addition & 0 deletions src/common/types/feed.js
Expand Up @@ -134,6 +134,7 @@ type AppActivityAPIItems = {

type AppActivityItem = {|
created_at: string,
occurred_at?: string,
permissions: BoxItemPermission,
...BaseAppActivityItem,
|};
Expand Down

0 comments on commit 44fd12b

Please sign in to comment.