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