bind/js: Remove broken try/catch

This commit is contained in:
Diego Reis
2025-05-26 12:49:47 -03:00
parent c2efab35e0
commit bce4ac45db

View File

@@ -119,7 +119,7 @@ impl Database {
#[napi]
pub fn exec(&self, sql: String) -> napi::Result<()> {
self.conn.query(sql).map_err(into_napi_error)?;
self.conn.execute(sql).map_err(into_napi_error)?;
Ok(())
}