diff --git a/CommonEventData.go b/CommonEventData.go index f60d84a..a229ea4 100644 --- a/CommonEventData.go +++ b/CommonEventData.go @@ -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") diff --git a/LessonCreateEvent_test.go b/LessonCreateEvent_test.go index f98d8bd..88da6a1 100644 --- a/LessonCreateEvent_test.go +++ b/LessonCreateEvent_test.go @@ -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", diff --git a/LessonDeletedEvent_test.go b/LessonDeletedEvent_test.go index 0014b5f..c7c0d85 100644 --- a/LessonDeletedEvent_test.go +++ b/LessonDeletedEvent_test.go @@ -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", diff --git a/LessonEditEvent_test.go b/LessonEditEvent_test.go index 71a3158..2a69fe6 100644 --- a/LessonEditEvent_test.go +++ b/LessonEditEvent_test.go @@ -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",