You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/02/28 02:51:05 UTC
(incubator-devlake) branch lw-fix-zentao-0228 created (now 3008fac58)
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a change to branch lw-fix-zentao-0228
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at 3008fac58 fix(zentao): fix `PatchConnection`
This branch includes the following new commits:
new 3008fac58 fix(zentao): fix `PatchConnection`
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix(zentao): fix `PatchConnection`
Posted by ly...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch lw-fix-zentao-0228
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 3008fac589c78ce87a2bac8c620856c9011fecd8
Author: Lynwee Hou <li...@merico.dev>
AuthorDate: Wed Feb 28 10:50:54 2024 +0800
fix(zentao): fix `PatchConnection`
---
backend/plugins/zentao/api/connection.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/plugins/zentao/api/connection.go b/backend/plugins/zentao/api/connection.go
index b114a48e9..f3eafbd4f 100644
--- a/backend/plugins/zentao/api/connection.go
+++ b/backend/plugins/zentao/api/connection.go
@@ -155,7 +155,7 @@ func PatchConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput,
if err := (&models.ZentaoConnection{}).MergeFromRequest(&existedConnection, input.Body); err != nil {
return nil, errors.Convert(err)
}
- if err := connectionHelper.SaveWithCreateOrUpdate(existedConnection); err != nil {
+ if err := connectionHelper.SaveWithCreateOrUpdate(&existedConnection); err != nil {
return nil, err
}
return &plugin.ApiResourceOutput{Body: existedConnection.Sanitize()}, nil