Skip to content

Commit

Permalink
Fix 226: Add missing 'description' field in the get organisation resp…
Browse files Browse the repository at this point in the history
…onse

Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Oct 12, 2023
1 parent 18576ec commit 6792c8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handlerv2/getorganizationbyid_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
type organizationResp struct {
ID primitive.ObjectID `bson:"_id,omitempty" json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Location string `json:"location"`
PolicyURL string `json:"policyUrl"`
CoverImageID string `json:"coverImageId"`
Expand All @@ -39,6 +40,7 @@ func GetOrganizationByID(w http.ResponseWriter, r *http.Request) {
oResp := organizationResp{
ID: o.ID,
Name: o.Name,
Description: o.Description,
Location: o.Location,
PolicyURL: o.PolicyURL,
CoverImageID: o.CoverImageID,
Expand Down

0 comments on commit 6792c8f

Please sign in to comment.