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
|
// attempt to send gift
|
||||||
// catch any errors and just ignore them for now
|
// catch any errors and just ignore them for now
|
||||||
await serialize(models,
|
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 } })
|
const invite = await models.invite.findUnique({ where: { id } })
|
||||||
notifyInvite(invite.userId)
|
notifyInvite(invite.userId)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user