Skip to content

Commit

Permalink
fix: mixpanel alias simplified merge error message (#2996)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpj2292 authored Jan 17, 2024
1 parent ff12d8f commit e53b304
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/v0/destinations/mp/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ const processSingleMessage = (message, destination) => {
return processIdentifyEvents(clonedMessage, clonedMessage.type, destination);
case EventType.ALIAS:
if (destination.Config?.identityMergeApi === 'simplified') {
throw new InstrumentationError('Alias call is deprecated in `Simplified ID merge`');
throw new InstrumentationError(
'The use of the alias call in the context of the `Simplified ID merge` feature is not supported anymore.',
);
}
return processAliasEvents(message, message.type, destination);
case EventType.GROUP:
Expand Down
3 changes: 2 additions & 1 deletion test/integrations/destinations/mp/processor/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4986,7 +4986,8 @@ export const data = [
status: 200,
body: [
{
error: 'Alias call is deprecated in `Simplified ID merge`',
error:
'The use of the alias call in the context of the `Simplified ID merge` feature is not supported anymore.',
statTags: {
destType: 'MP',
errorCategory: 'dataValidation',
Expand Down

0 comments on commit e53b304

Please sign in to comment.