Skip to content

Commit

Permalink
removes unecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mflilian committed Oct 7, 2022
1 parent 3b637a1 commit 9b62ad8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ import (
"go.mongodb.org/mongo-driver/bson"
)

// Message represents a chat message stored in MongoDB
// Message represents a chat message
type Message struct {
Timestamp time.Time `json:"timestamp" bson:"timestamp"`
Payload string `json:"payload" bson:"payload"`
Topic string `json:"topic" bson:"topic"`
}

// MessageV2 represents new payload for the chat message
// This payload is stored in MongoDB
// v2 endpoints return this format,
// while v1 endpoints convert this format to the originalMessage model
type MessageV2 struct {
Expand Down

0 comments on commit 9b62ad8

Please sign in to comment.