Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianBuzzo committed Oct 31, 2024
1 parent 4036bbf commit 4d3f0be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,14 @@ export const createClient = (
callback,
options,
}: {
// biome-ignore lint/suspicious/noExplicitAny: This is a private API
callback: (client: any) => Promise<unknown>;
// biome-ignore lint/suspicious/noExplicitAny: This is a private API
options?: any;
}) {
const headers = { traceparent: this._tracingHelper.getTraceParent() };

const optionsWithDefaults: any = {
const optionsWithDefaults = {
maxWait:
options?.maxWait ?? this._engineConfig.transactionOptions.maxWait,
timeout:
Expand All @@ -224,7 +226,7 @@ export const createClient = (

// it went well, then we commit the transaction
await this._engine.transaction("commit", headers, info);
} catch (e: any) {
} catch (e: unknown) {
// it went bad, then we rollback the transaction
await this._engine.transaction("rollback", headers, info).catch(() => {});

Expand Down

0 comments on commit 4d3f0be

Please sign in to comment.