We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 970d906 commit 3d71d9dCopy full SHA for 3d71d9d
pkg/events/message.go
@@ -78,7 +78,15 @@ type UpdatedSchema struct {
78
Schema ledger.Schema `json:"schema"`
79
}
80
81
-func NewEventUpdatedSchema(updatedChartOfAccount UpdatedSchema) publish.EventMessage {
+func NewEventUpdatedSchema(updatedSchema UpdatedSchema) publish.EventMessage {
82
+ return publish.EventMessage{
83
+ Date: time.Now().Time,
84
+ App: EventApp,
85
+ Version: EventVersion,
86
+ Type: EventTypeUpdatedSchema,
87
+ Payload: updatedSchema,
88
+ }
89
+}
90
return publish.EventMessage{
91
Date: time.Now().Time,
92
App: EventApp,
0 commit comments