Compare commits

..

No commits in common. "13eda4c1204acd5b54235d38ba9710336c04ffdc" and "d41b2e14f13b771a75cdc1a162ef95e3ced30b05" have entirely different histories.

4 changed files with 3 additions and 33 deletions

View File

@ -1061,10 +1061,10 @@ function PasswordHider ({ onClick, showPass }) {
onClick={onClick} onClick={onClick}
> >
{!showPass {!showPass
? <Eye ? <EyeClose
fill='var(--bs-body-color)' height={20} width={20} fill='var(--bs-body-color)' height={20} width={20}
/> />
: <EyeClose : <Eye
fill='var(--bs-body-color)' height={20} width={20} fill='var(--bs-body-color)' height={20} width={20}
/>} />}
</InputGroup.Text> </InputGroup.Text>

View File

@ -90,8 +90,7 @@ export default async ({ query: { username, amount, nostr, comment, payerdata: pa
return res.status(200).json({ return res.status(200).json({
pr: invoice.request, pr: invoice.request,
routes: [], routes: []
verify: `${process.env.NEXT_PUBLIC_URL}/api/lnurlp/${username}/verify/${invoice.id}`
}) })
} catch (error) { } catch (error) {
console.log(error) console.log(error)

View File

@ -1,15 +0,0 @@
import lnd from '@/api/lnd'
import { getInvoice } from 'ln-service'
export default async ({ query: { hash } }, res) => {
try {
const inv = await getInvoice({ id: hash, lnd })
const settled = inv.is_confirmed
return res.status(200).json({ status: 'OK', settled, preimage: settled ? inv.secret : null, pr: inv.request })
} catch (err) {
if (err[1] === 'UnexpectedLookupInvoiceErr') {
return res.status(404).json({ status: 'ERROR', reason: 'not found' })
}
return res.status(500).json({ status: 'ERROR', reason: 'internal server error' })
}
}

View File

@ -1,14 +0,0 @@
const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient();
(async () => {
for (let i = 0; i < process.env.NUM; i++) {
await prisma.invite.create({
data: {
userId: Number(process.env.USER_ID),
gift: Number(process.env.GIFT)
}
})
}
})()