Skip to content

Commit e1a5b9f

Browse files
committed
Fix application integration migration error.
Fixes #17.
1 parent 98e4ecc commit e1a5b9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,10 +657,11 @@ func migrateApplicationIntegrationsFn() {
657657

658658
for _, i := range ints {
659659
_, err := stmt.Exec(
660+
intToUUID(i.ApplicationID),
660661
getIntegrationKind(i.Kind),
661662
i.CreatedAt,
662663
i.UpdatedAt,
663-
getIntegrationConfiguration(i.Kind, i.Settings),
664+
string(getIntegrationConfiguration(i.Kind, i.Settings)),
664665
)
665666
if err != nil {
666667
log.Fatal("Exec application integrations statement error", err)
@@ -935,7 +936,7 @@ func getIntegrationKind(k string) string {
935936
return ""
936937
}
937938

938-
func getIntegrationConfiguration(kind string, raw json.RawMessage) json.RawMessage {
939+
func getIntegrationConfiguration(kind string, raw json.RawMessage) []byte {
939940
out := make(map[string]interface{})
940941

941942
// HTTP

0 commit comments

Comments
 (0)