cast amount

This commit is contained in:
keyan 2022-01-09 11:22:43 -06:00
parent 8286095871
commit 9d07318156
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export default async ({ query: { username, amount } }, res) => {
await serialize(models,
models.$queryRaw`SELECT * FROM create_invoice(${invoice.id}, ${invoice.request},
${expiresAt}, ${amount}, ${user.id})`)
${expiresAt}, ${Number(amount)}, ${user.id})`)
return res.status(200).json({
pr: invoice.request