Skip to content

Commit

Permalink
just update the source?
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Dec 22, 2023
1 parent 11edee8 commit 4104808
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions routes/keyManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ keys
} = req.body;
await stripe.customers.update(customer_id, {
email,
});
await stripe.subscriptions.update(subscription_id, {
default_source: id,
source: id,
});
res.sendStatus(200);
});
Expand Down

0 comments on commit 4104808

Please sign in to comment.