Stripe plugin logs undefined
as id on update - twice
#10113
Labels
status: needs-triage
Possible bug which hasn't been reproduced yet
Describe the Bug
2 bugs in 1, Christmas special!
https://github.com/payloadcms/payload/blob/main/packages/plugin-stripe/src/hooks/createNewInStripe.ts#L70
This should only cater for
create
action, instead it picks up update action, prints to console and does nothing. Just remove the whole update piece?https://github.com/payloadcms/payload/blob/main/packages/plugin-stripe/src/hooks/syncExistingWithStripe.ts#L54
Looks like the
_id
property onoriginalDoc
is undefined here. Leftover from v2?See log output
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/blob/main/packages/plugin-stripe/src/hooks/createNewInStripe.ts#L70
https://github.com/payloadcms/payload/blob/main/packages/plugin-stripe/src/hooks/syncExistingWithStripe.ts#L54
Reproduction Steps
products
Which area(s) are affected? (Select all that apply)
plugin: stripe
Environment Info
The text was updated successfully, but these errors were encountered: