Skip to content

Commit d3304af

Browse files
tknkaajycouet
andauthored
fix(drizzle): add missing closing parenthesis in D1 getDb function (#1022)
Co-authored-by: tknkaa <tknkaa@users.noreply.github.com> Co-authored-by: jycouet <jycouet@gmail.com>
1 parent 490859d commit d3304af

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/fifty-vans-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'sv': patch
3+
---
4+
5+
fix(drizzle): add missing closing parenthesis in D1 getDb function

packages/sv/src/addons/drizzle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export default defineAddon({
350350
js.imports.addNamed(ast, { from: 'drizzle-orm/d1', imports: ['drizzle'] });
351351

352352
const getDbFn = js.common.parseStatement(
353-
`export const getDb = (d1${ts(': D1Database')} => drizzle(d1, { schema });`
353+
`export const getDb = (d1${ts(': D1Database')}) => drizzle(d1, { schema });`
354354
);
355355

356356
ast.body.push(getDbFn);

0 commit comments

Comments
 (0)