mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-23 13:37:10 +08:00
bugfix
This commit is contained in:
@ -60,7 +60,7 @@ public class ConnectionInfoHandler {
|
||||
public ConnectInfo toInfo(Long dataSourceId, String database, Long consoleId) {
|
||||
DataResult<DataSource> result = dataSourceService.queryById(dataSourceId);
|
||||
DataSource dataSource = result.getData();
|
||||
if (!result.success() && dataSource != null) {
|
||||
if (!result.success() && dataSource == null) {
|
||||
throw new ParamBusinessException("dataSourceId");
|
||||
}
|
||||
ConnectInfo connectInfo = new ConnectInfo();
|
||||
|
Reference in New Issue
Block a user