Skip to content

Commit 946545c

Browse files
committed
wip: debug asynchronous duckdb query execution by making plot function async and adding await to the query
1 parent ee2d4c1 commit 946545c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/income.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const orderSectors = await db.query(`
3636
```
3737

3838
```js
39-
function incomeChart(db, selectedYear, width) {
40-
const income = db.query(`
39+
async function incomeChart(db, selectedYear, width) {
40+
const income = await db.query(`
4141
SELECT income, count, sector FROM data
4242
WHERE year = ${selectedYear}
4343
`);

0 commit comments

Comments
 (0)