Changed date field from int64 to time.Time to fix the parsing error.

This commit is contained in:
Sumit Madan
2022-03-07 13:14:21 +05:30
parent 9c954e23a1
commit f22656b35f
+4 -4
View File
@@ -1588,8 +1588,8 @@ type InstallationPayload struct {
RepositoryProjects string `json:"repository_projects"`
} `json:"permissions"`
Events []string `json:"events"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
SingleFileName *string `json:"single_file_name"`
} `json:"installation"`
Repositories []struct {
@@ -1666,8 +1666,8 @@ type InstallationRepositoriesPayload struct {
Contents string `json:"contents"`
} `json:"permissions"`
Events []string `json:"events"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
SingleFileName *string `json:"single_file_name"`
} `json:"installation"`
RepositoriesAdded []struct {