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 {
272
272
return APIErrorServerError ("Error setting mapset as explicit" , err )
273
273
}
274
274
275
+ if err := db .UpdateElasticSearchMapset (* mapset ); err != nil {
276
+ return APIErrorServerError ("Error updating elastic search mapset (mark as explicit)" , err )
277
+ }
278
+
275
279
c .JSON (http .StatusOK , gin.H {"message" : "You have successfully marked that mapset as explicit." })
276
280
return nil
277
281
}
@@ -309,6 +313,10 @@ func MarkMapsetAsNotExplicit(c *gin.Context) *APIError {
309
313
return APIErrorServerError ("Error setting mapset as explicit" , err )
310
314
}
311
315
316
+ if err := db .UpdateElasticSearchMapset (* mapset ); err != nil {
317
+ return APIErrorServerError ("Error updating elastic search mapset (mark as not explicit)" , err )
318
+ }
319
+
312
320
c .JSON (http .StatusOK , gin.H {"message" : "You have successfully marked that mapset as clean." })
313
321
return nil
314
322
}
You can’t perform that action at this time.
0 commit comments