Skip to content

Commit

Permalink
update notification type field name
Browse files Browse the repository at this point in the history
  • Loading branch information
zalbiraw committed Nov 29, 2024
1 parent 039f2b3 commit 3311f81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions services/kafka/notifications/helpers/Notificaiton.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func GetRandomNotification() interface{} {

// Return the map that matches Avro schema
return map[string]interface{}{
"notificationType": notificationType,
"msg": msg,
"type": notificationType,
"msg": msg,
}
}
4 changes: 2 additions & 2 deletions services/kafka/notifications/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ func getCodec() *goavro.Codec {
"name": "Notification",
"fields": [
{
"name": "notificationType",
"name": "type",
"type": {
"type": "enum",
"name": "NotificationType",
"name": "type",
"symbols": ["LIKE", "SHARE", "COMMENT"]
}
},
Expand Down

0 comments on commit 3311f81

Please sign in to comment.