Skip to content

Commit

Permalink
HasChanges flag in JSON message
Browse files Browse the repository at this point in the history
  • Loading branch information
berejant committed Oct 14, 2023
1 parent 83a0fc0 commit 038de8d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CommonEventData.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func EventToMessage(event interface{}) *Message {

message.ReceiptHandle = commonEventDataMap["ReceiptHandle"].(*string)
message.Timestamp = commonEventDataMap["Timestamp"].(int64)
message.FormHasChanges = commonEventDataMap["HasChanges"].(bool)

delete(commonEventDataMap, "ReceiptHandle")
delete(commonEventDataMap, "Timestamp")
Expand Down
1 change: 1 addition & 0 deletions LessonCreateEvent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ func TestLessonCreateEvent_ToMessage(t *testing.T) {
originalEvent := LessonCreateEvent{
CommonEventData: CommonEventData{
Timestamp: 1673000000,
HasChanges: true,
SessionId: "00AB0000-0000-0000-0000-000CD0000AA0",
LessonId: "0",
DisciplineId: "193000",
Expand Down
1 change: 1 addition & 0 deletions LessonDeletedEvent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ func TestLessonDeletedEvent_ToMessage(t *testing.T) {
originalEvent := LessonDeletedEvent{
CommonEventData: CommonEventData{
Timestamp: 1673000000,
HasChanges: true,
SessionId: "00AB0000-0000-0000-0000-000CD0000AA0",
LessonId: "999999",
DisciplineId: "193000",
Expand Down
1 change: 1 addition & 0 deletions LessonEditEvent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func TestLessonEditEvent_ToMessage(t *testing.T) {
originalEvent := LessonEditEvent{
CommonEventData: CommonEventData{
Timestamp: 1673000000,
HasChanges: true,
SessionId: "00AB0000-0000-0000-0000-000CD0000AA0",
LessonId: "999999",
DisciplineId: "193000",
Expand Down

0 comments on commit 038de8d

Please sign in to comment.