Skip to content

Commit 82283f1

Browse files
committed
add created at
1 parent f1bf056 commit 82283f1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

backend/models/orgs.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)