You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zk...@apache.org on 2023/01/30 13:28:57 UTC

[incubator-devlake] branch main updated: fix: SQL duplicate key error (#4240) (#4253)

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

zky 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 51c83a76b fix: SQL duplicate key error (#4240) (#4253)
51c83a76b is described below

commit 51c83a76b6aa13a58adfc71fb5540e3b9ec56c59
Author: Anurag Rajawat <an...@gmail.com>
AuthorDate: Mon Jan 30 18:58:51 2023 +0530

    fix: SQL duplicate key error (#4240) (#4253)
    
    Signed-off-by: Anurag Rajawat <an...@gmail.com>
---
 backend/server/services/blueprint_makeplan_v200.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/server/services/blueprint_makeplan_v200.go b/backend/server/services/blueprint_makeplan_v200.go
index 11b32d50f..81047807d 100644
--- a/backend/server/services/blueprint_makeplan_v200.go
+++ b/backend/server/services/blueprint_makeplan_v200.go
@@ -62,7 +62,7 @@ func GeneratePlanJsonV200(
 				Table:       scope.TableName(),
 				RowId:       scope.ScopeId(),
 			}
-			err = db.Create(projectMapping)
+			err = db.CreateOrUpdate(projectMapping)
 			if err != nil {
 				return nil, err
 			}