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

youling1128 pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git


The following commit(s) were added to refs/heads/dev by this push:
     new 0b5a7de0 [fix] fix env info will not be synced [can nit load current 
resource] (#1481)
0b5a7de0 is described below

commit 0b5a7de0803aea390071f2ff7a79b7b6b9c9b343
Author: tornado-ssy <[email protected]>
AuthorDate: Fri Jun 21 10:22:28 2024 +0800

    [fix] fix env info will not be synced [can nit load current resource] 
(#1481)
---
 syncer/service/replicator/resource/environment.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syncer/service/replicator/resource/environment.go 
b/syncer/service/replicator/resource/environment.go
index db89887f..2b77729d 100644
--- a/syncer/service/replicator/resource/environment.go
+++ b/syncer/service/replicator/resource/environment.go
@@ -93,7 +93,7 @@ func (e *environment) LoadCurrentResource(ctx 
context.Context) *Result {
                EnvironmentId: e.envID,
        })
        if err != nil {
-               if errsvc.IsErrEqualCode(err, pb.ErrServiceNotExists) {
+               if errsvc.IsErrEqualCode(err, pb.ErrEnvironmentNotExists) {
                        return nil
                }
 

Reply via email to