File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,10 @@ func MarkMapsetAsExplicit(c *gin.Context) *APIError {
272272 return APIErrorServerError ("Error setting mapset as explicit" , err )
273273 }
274274
275+ if err := db .UpdateElasticSearchMapset (* mapset ); err != nil {
276+ return APIErrorServerError ("Error updating elastic search mapset (mark as explicit)" , err )
277+ }
278+
275279 c .JSON (http .StatusOK , gin.H {"message" : "You have successfully marked that mapset as explicit." })
276280 return nil
277281}
@@ -309,6 +313,10 @@ func MarkMapsetAsNotExplicit(c *gin.Context) *APIError {
309313 return APIErrorServerError ("Error setting mapset as explicit" , err )
310314 }
311315
316+ if err := db .UpdateElasticSearchMapset (* mapset ); err != nil {
317+ return APIErrorServerError ("Error updating elastic search mapset (mark as not explicit)" , err )
318+ }
319+
312320 c .JSON (http .StatusOK , gin.H {"message" : "You have successfully marked that mapset as clean." })
313321 return nil
314322}
You can’t perform that action at this time.
0 commit comments