diff options
Diffstat (limited to 'routers/private/restore_repo.go')
-rw-r--r-- | routers/private/restore_repo.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/routers/private/restore_repo.go b/routers/private/restore_repo.go index 8dfe569325..34e06e51c2 100644 --- a/routers/private/restore_repo.go +++ b/routers/private/restore_repo.go @@ -24,10 +24,11 @@ func RestoreRepo(ctx *myCtx.PrivateContext) { return } params := struct { - RepoDir string - OwnerName string - RepoName string - Units []string + RepoDir string + OwnerName string + RepoName string + Units []string + Validation bool }{} if err = json.Unmarshal(bs, ¶ms); err != nil { ctx.JSON(http.StatusInternalServerError, private.Response{ @@ -42,6 +43,7 @@ func RestoreRepo(ctx *myCtx.PrivateContext) { params.OwnerName, params.RepoName, params.Units, + params.Validation, ); err != nil { ctx.JSON(http.StatusInternalServerError, private.Response{ Err: err.Error(), |