Skip to content

Commit

Permalink
fix: correct parameter order in callbackHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarim committed Sep 16, 2024
1 parent fad7f97 commit efd5b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/integrations/server/triggers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const callbackHandler = function _callbackHandler(eventType: string) {
};
};

callbacks.add('afterSaveMessage', callbackHandler('sendMessage'), callbacks.priority.LOW, 'integrations-sendMessage');
callbacks.add('afterSaveMessage', (message, { room }) => callbackHandler('sendMessage')(message, room), callbacks.priority.LOW, 'integrations-afterSaveMessage');
callbacks.add('afterCreateChannel', callbackHandler('roomCreated'), callbacks.priority.LOW, 'integrations-roomCreated');
callbacks.add('afterCreatePrivateGroup', callbackHandler('roomCreated'), callbacks.priority.LOW, 'integrations-roomCreated');
callbacks.add('afterCreateUser', callbackHandler('userCreated'), callbacks.priority.LOW, 'integrations-userCreated');
Expand Down

0 comments on commit efd5b78

Please sign in to comment.