mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 10:16:00 +00:00
fix
This commit is contained in:
@@ -587,7 +587,7 @@ module.exports = {
|
||||
if (!structure) return { errorMessage: 'No database structure' };
|
||||
const res = await callCompleteOnCursorApi(text, structure, dialect, line);
|
||||
|
||||
if (!res?.sql) {
|
||||
if (!res?.variants) {
|
||||
return { errorMessage: 'No SQL generated' };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user