Skip to content

Commit 6929683

Browse files
committed
Always drop the temporary table
1 parent 7744966 commit 6929683

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/storage/providers/SQLiteProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ const provider: StorageProvider<NitroSQLiteConnection | undefined> = {
150150

151151
return result ?? [];
152152
})
153-
.catch((error) => {
153+
.finally(() => {
154+
// Drops the temporary table to free up resources.
154155
provider.store?.executeAsync(`DROP TABLE IF EXISTS ${tableName};`);
155-
throw error;
156156
});
157157
},
158158
setItem(key, value) {

0 commit comments

Comments
 (0)