File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed
test/plugin-stripe/webhooks Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,6 @@ const typescriptRules = {
70
70
'@typescript-eslint/no-unsafe-argument' : 'off' ,
71
71
'@typescript-eslint/no-unsafe-return' : 'off' ,
72
72
'@typescript-eslint/unbound-method' : 'warn' ,
73
- // This rule doesn't work well in .tsx files
74
- '@typescript-eslint/no-misused-promises' : 'off' ,
75
73
'@typescript-eslint/consistent-type-imports' : 'warn' ,
76
74
'@typescript-eslint/no-explicit-any' : 'warn' ,
77
75
// Type-aware any rules end
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export type StripeWebhookHandler<T = any> = (args: {
8
8
pluginConfig ?: StripePluginConfig
9
9
req : PayloadRequest
10
10
stripe : Stripe
11
- } ) => void
11
+ } ) => Promise < void > | void
12
12
13
13
export type StripeWebhookHandlers = {
14
14
[ webhookName : string ] : StripeWebhookHandler
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ export const syncPriceJSON = async (args) => {
9
9
10
10
const { id : eventID , default_price } = event . data . object
11
11
12
- console . log ( event . data . object )
13
-
14
12
let payloadProductID
15
13
16
14
// First lookup the product in Payload
You can’t perform that action at this time.
0 commit comments