You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2022/09/28 12:50:50 UTC

[incubator-devlake] branch main updated: fix: return 200 if no pending migration script (#3227)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new bbd27f4e fix: return 200 if no pending migration script (#3227)
bbd27f4e is described below

commit bbd27f4ec4281a93dca3f659951417b489caca66
Author: mindlesscloud <li...@merico.dev>
AuthorDate: Wed Sep 28 20:50:44 2022 +0800

    fix: return 200 if no pending migration script (#3227)
---
 api/api.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/api.go b/api/api.go
index fa6a2e3b..40640a62 100644
--- a/api/api.go
+++ b/api/api.go
@@ -56,7 +56,7 @@ func CreateApiService() {
 	// Wait for user confirmation if db migration is needed
 	router.GET("/proceed-db-migration", func(ctx *gin.Context) {
 		if !services.MigrationRequireConfirmation() {
-			shared.ApiOutputError(ctx, errors.BadInput.New("no pending migration"))
+			shared.ApiOutputSuccess(ctx, nil, http.StatusOK)
 			return
 		}
 		err := services.ExecuteMigration()