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 }