fix: 修复编辑Elasticsearch数据源,保存成功,但checkrequest接口报错

This commit is contained in:
taojinlong 2024-11-06 12:30:39 +08:00
parent e4a978e3c7
commit 3d470890f6

View File

@ -126,7 +126,7 @@ public class DatasourceServer implements DatasourceApi {
}
public boolean checkRepeat(@RequestBody BusiDsRequest dataSourceDTO) {
if (Arrays.asList("API", "Excel", "folder").contains(dataSourceDTO.getType())) {
if (Arrays.asList("API", "Excel", "folder", "es").contains(dataSourceDTO.getType())) {
return false;
}
BusiNodeRequest request = new BusiNodeRequest();