Skip to content

Commit

Permalink
chore: add feature image field
Browse files Browse the repository at this point in the history
  • Loading branch information
Salaton committed Sep 14, 2021
1 parent 947f125 commit 9b170a0
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/engagement/domain/feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ type Feed struct {

// indicates whether the user is Anonymous or not
IsAnonymous *bool `json:"isAnonymous" firestore:"isAnonymous"`

FeatureImage string `json:"feature_image"`
}

// GetID return the feed ID
Expand Down
1 change: 1 addition & 0 deletions pkg/engagement/presentation/graph/feed.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type Feed {
nudges: [Nudge!]!
items: [Item!]!
isAnonymous: Boolean!
featureImage: String
}

type Nudge {
Expand Down
43 changes: 43 additions & 0 deletions pkg/engagement/presentation/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions static/feed.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"isAnonymous": {
"type": "boolean"
},
"feature_image": {
"type": "string"
},
"flavour": {
"type": "string",
"$ref": "https://schema.healthcloud.co.ke/flavour.schema.json#/definitions/flavour"
Expand Down

0 comments on commit 9b170a0

Please sign in to comment.