Skip to content

Commit

Permalink
feat(ActivitiesSdkAdapter): add 'personID' and 'created' properties t…
Browse files Browse the repository at this point in the history
…o newly created action object
  • Loading branch information
karinasigartau0798 authored and cipak committed Feb 9, 2022
1 parent a753f51 commit b4ea9f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ActivitiesSDKAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export default class ActivitiesSDKAdapter extends ActivitiesAdapter {
activityID: action.messageId,
inputs: action.inputs,
roomID: action.roomId,
personID: action.personId,
type: action.type,
created: action.created,
})),
tap((action) => {
logger.debug('ATTACHMENT-ACTION', action.actionID, 'postAction()', ['emitting posted attachment action', action]);
Expand Down
2 changes: 2 additions & 0 deletions src/ActivitiesSDKAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ describe('Activities SDK Adapter', () => {
lastName: 'My last name',
},
roomID: 'roomID',
personID: 'personID',
type: 'submit',
created: '2022-02-03T14:26:16+00:00',
});
done();
});
Expand Down
2 changes: 2 additions & 0 deletions src/mockSdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@ export const mockSDKAttachmentAction = {
type: 'submit',
messageId: 'activityID',
roomId: 'roomID',
personId: 'personID',
inputs: {
firstName: 'My first name',
lastName: 'My last name',
},
created: '2022-02-03T14:26:16+00:00',
};

/**
Expand Down

0 comments on commit b4ea9f3

Please sign in to comment.