Skip to content

Commit 668bc15

Browse files
committed
fix(build): do not return database in dropContentTables
1 parent a900f22 commit 668bc15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function localDatabase(databaseLocation: string) {
260260
_localDatabase[databaseLocation]!.exec(`DELETE FROM _development_cache WHERE id = '${id}'`)
261261
},
262262
dropContentTables() {
263-
return _localDatabase[databaseLocation]!.prepare<unknown[], { name: string }>(`SELECT name FROM sqlite_master WHERE type = 'table' AND name LIKE '_content_%'`)
263+
_localDatabase[databaseLocation]!.prepare<unknown[], { name: string }>(`SELECT name FROM sqlite_master WHERE type = 'table' AND name LIKE '_content_%'`)
264264
.all()
265265
.map(({ name }) => _localDatabase[databaseLocation]!.exec(`DROP TABLE IF EXISTS ${name}`))
266266
},

0 commit comments

Comments
 (0)