Upgrade to cashu-ts v4 and drop unused deps.
Adapt amount handling for v4 Amount objects, replace axios/uuid with fetch and crypto.randomUUID, and remove dead helpers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -74,7 +74,7 @@ const redemption = require('../components/redemption');
|
||||
* $ref: '#/components/responses/InternalServerError'
|
||||
*/
|
||||
router.post('/redeem', async (req, res) => {
|
||||
const { token, lightningAddress } = req.body;
|
||||
const { token, lightningAddress } = req.body ?? {};
|
||||
|
||||
const validation = await redemption.validateRedemptionRequest(token, lightningAddress);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user