소스 검색

fix(go): set correct response type;

Vishal Dalwadi 5 달 전
부모
커밋
ab93f4e057
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()