Skip to content

Commit

Permalink
api: Mark certain fields optional in sendMessage.
Browse files Browse the repository at this point in the history
Make the fields subject, localId, and eventQueueId optional.
These are not always required to be sent to the send-message
endpoint, and this modified form will be used in the sharing
module.
  • Loading branch information
agrawal-d authored and gnprice committed Jul 18, 2020
1 parent 64ca473 commit b4692e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/messages/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export default async (
params: {|
type: 'private' | 'stream',
to: string,
subject: string,
subject?: string,
content: string,
localId: number,
eventQueueId: number,
localId?: number,
eventQueueId?: number,
|},
): Promise<ApiResponse> =>
apiPost(auth, 'messages', {
Expand Down

0 comments on commit b4692e3

Please sign in to comment.