Skip to content

Commit

Permalink
Return the patched promise, not the original one
Browse files Browse the repository at this point in the history
  • Loading branch information
punya committed Aug 29, 2022
1 parent 16d928f commit a6b166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/plugin-pg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const plugin: Plugin = [
// Unlike in pg 6, the returned value can't be both a Promise and
// a Submittable. So we don't run the risk of double-patching
// here.
pgPatch.patchPromise(pgQuery, span);
pgQuery = pgPatch.patchPromise(pgQuery, span);
}
}
return pgQuery;
Expand Down

0 comments on commit a6b166b

Please sign in to comment.