Skip to content

Commit

Permalink
fix: return correct
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Jul 4, 2024
1 parent c04e357 commit 3f251aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/network/sql/executeSQL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Task {
}
return res?.data;
};
public getResult = async (): Promise<IExecutingInfo> => {
public getResult = async (): Promise<ISqlExecuteResult[]> => {
return new Promise((resolve, reject) => {
this.onUpdate({
finished: false,
Expand Down Expand Up @@ -172,7 +172,7 @@ class TaskManager {
sessionId: string,
taskInfo: ISQLExecuteTask,
onUpdate: (info: IExecutingInfo) => void,
): Promise<IExecutingInfo> {
): Promise<ISqlExecuteResult[]> {
const task = new Task(requestId, sessionId, taskInfo, onUpdate);
this.tasks.push(task);
try {
Expand Down Expand Up @@ -258,7 +258,7 @@ export default async function executeSQL(
taskInfo,
onUpdate,
);
let { results } = executeRes;
let results = executeRes;
results = results?.map((result) => {
if (!result.requestId) {
result.requestId = requestId;
Expand Down

0 comments on commit 3f251aa

Please sign in to comment.