Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: avoid infinite for-loop (#5926)

h3n4l235289d4848f
diff --git a/backend/server/webhook.go b/backend/server/webhook.go
index 5cd16bc171..fb0306c8a5 100644
--- a/backend/server/webhook.go
+++ b/backend/server/webhook.go
@@ -2014,6 +2014,7 @@ func (s *Server) buildMybatisMapperXMLFileData(ctx context.Context, repo *api.Re
if currentDir == "" {
break
}
+ configPath = currentDir
}
mybatisMapperXMLFileData = append(mybatisMapperXMLFileData, datum)
}