Skip to content

Commit

Permalink
Stringify the invoice metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Hindman committed Mar 31, 2024
1 parent 7f66db4 commit 99726e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pages/api/lnurlp/[username].ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export default async function (req: NextApiRequest, res: NextApiResponse) {
}
const accountUsername = username ? username.toString() : ""

console.log(`accountUsername = ${accountUsername}`)
const lnurl = await getLnurl(accountUsername, req)
if (!lnurl) {
return res.json({
Expand All @@ -121,7 +120,7 @@ export default async function (req: NextApiRequest, res: NextApiResponse) {
callback: details.callback,
maxSendable: details.max,
minSendable: details.min,
metadata: details.metadata,
metadata: JSON.stringify(details.metadata),
tag: "payRequest",
domain: details.domain,
description: details.description,
Expand Down

0 comments on commit 99726e1

Please sign in to comment.