From 9ea8c9999e18585a2409b648c033f87dc98d7521 Mon Sep 17 00:00:00 2001 From: songshiyuan 00649746 Date: Fri, 21 Jun 2024 09:50:12 +0800 Subject: [PATCH] [fix] fix env info will not be synced [can nit load current resource] --- 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 db89887f0..2b77729de 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 }