Skip to content

Commit

Permalink
fix: call to lower case only when message.type is defined (#2109)
Browse files Browse the repository at this point in the history
Co-authored-by: Mihir Bhalala <77438541+mihir-4116@users.noreply.github.com>
  • Loading branch information
koladilip and mihir-4116 committed May 2, 2023
1 parent 66b335c commit 71c1e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/warehouse/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ function processWarehouseMessage(message, options) {
? message.integrations[options.provider.toUpperCase()].options
: {};
const responses = [];
const eventType = message.type.toLowerCase();
const eventType = message.type?.toLowerCase();
const skipTracksTable = options.integrationOptions.skipTracksTable || false;
const skipReservedKeywordsEscaping =
options.integrationOptions.skipReservedKeywordsEscaping || false;
Expand Down

0 comments on commit 71c1e7a

Please sign in to comment.