changed types.JsonArray to support generics

This commit is contained in:
Gani Georgiev committed 2023-03-22 17:12:44 +02:00
1 parent a79f3a7c56
commit 923fc26a31
13 files changed
+69 -65

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ func TestSyncRecordTableSchema(t *testing.T) {
Type: schema.FieldTypeEmail,
},
)
updatedCollection.Indexes = types.JsonArray{"create index idx_title_renamed on anything (title_renamed)"}
updatedCollection.Indexes = types.JsonArray[string]{"create index idx_title_renamed on anything (title_renamed)"}
scenarios := []struct {
name string
@@ -75,7 +75,7 @@ func TestSyncRecordTableSchema(t *testing.T) {
Type: schema.FieldTypeText,
},
),
Indexes: types.JsonArray{"create index idx_auth_test on anything (email, username)"},
Indexes: types.JsonArray[string]{"create index idx_auth_test on anything (email, username)"},
},
nil,
[]string{