Skip to content

Commit

Permalink
feat(driver-adapters): fallback to \"flavour\" for [email protected]
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Tatarintsev <[email protected]>
  • Loading branch information
jkomyno and SevInf authored Dec 1, 2023
1 parent 733f15d commit 6add207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query-engine/driver-adapters/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ impl TryFrom<JSResultSet> for QuaintResultSet {

impl CommonProxy {
pub fn new(object: &JsObject) -> napi::Result<Self> {
let provider: JsString = object.get_named_property("provider")?;
let provider: JsString = object.get_named_property("provider").or_else(|_| object.get_named_property("flavour"))?;

Ok(Self {
query_raw: object.get_named_property("queryRaw")?,
Expand Down

0 comments on commit 6add207

Please sign in to comment.