diff --git a/src/modules/app.service.ts b/src/modules/app.service.ts index d30a881..eac2173 100644 --- a/src/modules/app.service.ts +++ b/src/modules/app.service.ts @@ -99,7 +99,7 @@ export function connectionCanEdit(connection: Connection) { } export function getTextByDatabaseType(databaseType: string) { - const database = DATA_BASE_TYPES.find(item => item.databaseType === databaseType); + const database = getAllDatabaseTypes().find(item => item.databaseType === databaseType); return database ? database.text : ''; }