fix invite link parameter type

This commit is contained in:
keyan 2024-04-02 19:14:06 -05:00
parent e2c7f4aa58
commit f2589efc94
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export async function getServerSideProps ({ req, res, query: { id, error = null
// attempt to send gift
// catch any errors and just ignore them for now
await serialize(models,
models.$queryRawUnsafe('SELECT invite_drain($1::INTEGER, $2::INTEGER)', session.user.id, id))
models.$queryRawUnsafe('SELECT invite_drain($1::INTEGER, $2::TEXT)', session.user.id, id))
const invite = await models.invite.findUnique({ where: { id } })
notifyInvite(invite.userId)
} catch (e) {