Skip to content

Commit

Permalink
update exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
azurity committed Dec 21, 2022
1 parent 4379d7e commit 2ca6d1d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type BulletinJSON struct {
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
Title string `json:"title"`
Style string `json:"style"`
PublishTime string `json:"publishTime"`
}

Expand All @@ -39,7 +40,8 @@ func newBulletinJSON(input entity.Bulletin) BulletinJSON {
Topping: input.Topping,
CreatedAt: input.CreatedAt.In(timeZone).Format(time.RFC3339),
UpdatedAt: input.UpdatedAt.In(timeZone).Format(time.RFC3339),
Title: "",
Title: input.Title,
Style: input.Style,
PublishTime: input.PublishTime.In(timeZone).Format(time.RFC3339),
}
}
Expand Down Expand Up @@ -81,10 +83,10 @@ func newChallengeJSON(input entity.Challenge) ChallengeJSON {
type ReplicaJSON struct {
ReplicaId string `json:"replicaId"`
ChallengeId string `json:"challengeId"`
Singleton bool
Singleton bool `json:"singleton"`
Status string `json:"status"`
Flag string `json:"flag"`
FlagType string
FlagType string `json:"flagType"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
Expand Down

0 comments on commit 2ca6d1d

Please sign in to comment.