diff --git a/index.js b/index.js index f8938c7..4ca18d2 100644 --- a/index.js +++ b/index.js @@ -174,8 +174,8 @@ async function onAlias(event, settings) { ...event, event: '$create_alias', properties: { - alias: event.previousId, - distinct_id: event.userId, + alias: event.userId, + distinct_id: event.previousId, }, }, settings