Skip to content

Commit

Permalink
fix: fixed marketplace plugin verifier complaints (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Oct 28, 2024
1 parent 8fcf41c commit 93c312e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,19 @@ public class SegmentBroker implements IMessageBroker {

private enum SegmentType {
IDENTIFY {
@Override
public MessageBuilder toMessage(Event event, Map<String, Object> context, SegmentBroker broker) {
return broker.toMessage(IdentifyMessage.builder(), event, context);
}
},
TRACK {
@Override
public MessageBuilder toMessage(Event event, Map<String, Object> context, SegmentBroker broker) {
return broker.toMessage(TrackMessage.builder(event.getName()), event, context);
}
},
PAGE {
@Override
public MessageBuilder toMessage(Event event, Map<String, Object> context, SegmentBroker broker) {
return broker.toMessage(PageMessage.builder(event.getName()), event, context);
}
Expand Down

0 comments on commit 93c312e

Please sign in to comment.