Skip to content

Commit

Permalink
fix after comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi committed Jul 19, 2018
1 parent f39400f commit 3c6b0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ StreamClient.prototype = {
data['foreign_id'] = data.foreignID;
delete data.foreignID;
}
if (!data.id && !(data['foreign_id'] && data.time)) {
if ((data.id === undefined) && (data.foreign_id === undefined || data.time === undefined)) {
throw new TypeError('Missing id or foreign ID and time')
}
if (data.set && !(data.set instanceof Object)) {
Expand Down

0 comments on commit 3c6b0dc

Please sign in to comment.