File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,9 +67,10 @@ func AddDivision(c *fiber.Ctx) error {
6767// @Success 200 {array} models.Division
6868func ListDivisions (c * fiber.Ctx ) error {
6969 var divisions Divisions
70- if GetCache ("divisions" , & divisions ) {
71- return c .JSON (divisions )
72- }
70+ // Temporarily disable cache
71+ //if GetCache("divisions", &divisions) {
72+ // return c.JSON(divisions)
73+ //}
7374 err := DB .Find (& divisions , "hidden = false" ).Error
7475 if err != nil {
7576 return err
Original file line number Diff line number Diff line change @@ -1214,5 +1214,10 @@ func GenerateSummary(c *fiber.Ctx) error {
12141214}
12151215
12161216func GetFeedback (c * fiber.Ctx ) error {
1217+ var body SummaryFeedback
1218+ err := common .ValidateBody (c , & body )
1219+ if err != nil {
1220+ return err
1221+ }
12171222 return c .Status (200 ).JSON (fiber.Map {})
12181223}
Original file line number Diff line number Diff line change @@ -180,3 +180,9 @@ type Response struct {
180180 Message string `json:"message"`
181181 Data struct {} `json:"data"`
182182}
183+
184+ type SummaryFeedback struct {
185+ TraceID string `json:"trace_id"`
186+ Type int `json:"type"`
187+ Reason string `json:"reason"`
188+ }
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func (divisions Divisions) Preprocess(c *fiber.Ctx) error {
5757 return err
5858 }
5959 }
60- return utils .SetCache ("divisions" , divisions , 0 )
60+ return nil // utils.SetCache("divisions", divisions, 0)
6161}
6262
6363func (division * Division ) Preprocess (c * fiber.Ctx ) error {
You can’t perform that action at this time.
0 commit comments