Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Dec 20, 2024
1 parent 09aa180 commit 737623f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/mongo/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,8 @@ func (m *Message) ToRawMessage(collection config.Collection, database string) (l
Operation: m.operation,
},
}

pkMap := map[string]any{
"payload": m.pkMap,
}

// MongoDB wouldn't include the schema.
return lib.NewRawMessage(collection.TopicSuffix(database), debezium.FieldsObject{}, pkMap, evt), nil
return lib.NewRawMessage(collection.TopicSuffix(database), debezium.FieldsObject{}, m.pkMap, evt), nil
}

func ParseMessage(after bson.M, before *bson.M, op string) (*Message, error) {
Expand Down

0 comments on commit 737623f

Please sign in to comment.