Skip to content

Commit 9f36667

Browse files
fix regression
1 parent ec901c6 commit 9f36667

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/web/src/worker/db/WASQLiteDB.worker.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ const openWorkerConnection = async (options: ResolvedWASQLiteOpenFactoryOptions)
7777
const connection = new WASqliteConnection(options);
7878
return {
7979
init: Comlink.proxy(() => connection.init()),
80-
getConfig: Comlink.proxy(() => {
81-
const config = connection.getConfig();
82-
// TODO logger is not transferable
83-
return Object.fromEntries(Object.entries(config).filter(([key]) => key !== 'logger')) as any;
80+
getConfig: Comlink.proxy(async () => {
81+
// Can't send the logger over
82+
const { logger, ...rest } = await connection.getConfig();
83+
return rest;
8484
}),
8585
close: Comlink.proxy(() => connection.close()),
8686
execute: Comlink.proxy(async (sql: string, params?: any[]) => connection.execute(sql, params)),

0 commit comments

Comments
 (0)