Removed error logging from the stripe integration

This commit is contained in:
Eric Allam
2023-08-02 11:53:42 +01:00
parent 6d04f6c62a
commit c1755ff85b
2 changed files with 5 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@trigger.dev/stripe": patch
---
Removed error logging
-7
View File
@@ -23,13 +23,6 @@ import { omit } from "./utils";
export const createCharge: AuthenticatedTask<StripeSDK, CreateChargeParams, CreateChargeResponse> =
{
onError: (error) => {
if (error instanceof Stripe.errors.StripeError) {
console.log("Stripe error", error);
}
throw error;
},
run: async (params, client, task) => {
const response = await client.charges.create(params, {
idempotencyKey: task.idempotencyKey,