Skip to content

Commit

Permalink
await
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu-dev committed Nov 21, 2024
1 parent e42a3e7 commit 8ed7d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphql-server/src/databases/database.resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ export class DatabaseResolver {
const workbenchConfig = getWorkbenchConfigFromArgs(args);
const ds = getDataSource(workbenchConfig);
const { qf } = await initializeQueryFactory(workbenchConfig.type, ds);
return qf.databases();
const dbs = await qf.databases();
return dbs;
}

@Query(_returns => [String])
Expand Down

0 comments on commit 8ed7d5e

Please sign in to comment.