File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,14 @@ func (r *Repo) MapToJsonStruct() interface{} {
166166 return r .Organisation .Name
167167 }
168168 return struct {
169- Id uint `json:"id"`
170- Name string `json:"name"`
171- RepoFullName string `json:"repo_full_name"`
172- RepoUrl string `json:"repo_url"`
173- VCS string `json:"vcs"`
174- OrganisationID uint `json:"organisation_id"`
175- OrganisationName string `json:"organisation_name"`
169+ Id uint `json:"id"`
170+ Name string `json:"name"`
171+ RepoFullName string `json:"repo_full_name"`
172+ RepoUrl string `json:"repo_url"`
173+ VCS string `json:"vcs"`
174+ OrganisationID uint `json:"organisation_id"`
175+ OrganisationName string `json:"organisation_name"`
176+ CreatedAt time.Time `json:"created_at"`
176177 }{
177178 Id : r .ID ,
178179 Name : r .RepoName ,
@@ -181,6 +182,7 @@ func (r *Repo) MapToJsonStruct() interface{} {
181182 VCS : string (r .VCS ),
182183 OrganisationID : r .OrganisationID ,
183184 OrganisationName : OrganisationName (),
185+ CreatedAt : r .CreatedAt ,
184186 }
185187}
186188
You can’t perform that action at this time.
0 commit comments