Ver código fonte

fix(go): set correct response type;

Vishal Dalwadi 5 meses atrás
pai
commit
ab93f4e057
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      pro/controllers/users.go

+ 1 - 1
pro/controllers/users.go

@@ -1402,7 +1402,7 @@ func deleteAllPendingUsers(w http.ResponseWriter, r *http.Request) {
 // @Summary     Sync users and groups from idp.
 // @Router      /api/idp/sync [post]
 // @Tags        IDP
-// @Success     200 {string} string
+// @Success     200 {object} models.SuccessResponse
 func syncIdp(w http.ResponseWriter, r *http.Request) {
 	go func() {
 		err := proAuth.SyncFromIDP()