fix invite link parameter type
This commit is contained in:
parent
e2c7f4aa58
commit
f2589efc94
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue