Skip to content

Commit

Permalink
fix: add dbType to getDBSecret query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Oct 17, 2024
1 parent 84e78b8 commit dd9b70e
Showing 1 changed file with 2 additions and 2 deletions.
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 dd9b70e

Please sign in to comment.