Skip to content

Commit 4104808

Browse files
committed
just update the source?
1 parent 11edee8 commit 4104808

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

routes/keyManagement.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,7 @@ keys
297297
} = req.body;
298298
await stripe.customers.update(customer_id, {
299299
email,
300-
});
301-
await stripe.subscriptions.update(subscription_id, {
302-
default_source: id,
300+
source: id,
303301
});
304302
res.sendStatus(200);
305303
});

0 commit comments

Comments
 (0)