Skip to content

Commit

Permalink
fix: add dbType to getDBSecret query parameters (#5158)
Browse files Browse the repository at this point in the history
* feat: add Kafka and Milvus connection string support

* fix: add dbType to getDBSecret query parameters
  • Loading branch information
zjy365 authored Oct 17, 2024
1 parent 1306895 commit 3c67bd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
data
});
} catch (error) {
console.log(error);
jsonRes(res, { code: 500, message: 'get price error' });
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ const AppBaseInfo = ({ db = defaultDBDetail }: { db: DBDetailType }) => {
);

const { data: secret } = useQuery(
['getDBSecret', db.dbName],
['getDBSecret', db.dbName, db.dbType],
() => (db.dbName ? getDBSecret({ dbName: db.dbName, dbType: db.dbType }) : null),
{
enabled: supportConnectDB
}
);

const { data: service, refetch } = useQuery(
['getDBService', db.dbName],
['getDBService', db.dbName, db.dbType],
() => (db.dbName ? getDBServiceByName(`${db.dbName}-export`) : null),
{
enabled: supportConnectDB,
Expand Down

0 comments on commit 3c67bd1

Please sign in to comment.