diff --git a/pages/invites/[id].js b/pages/invites/[id].js index a138452f..c876988b 100644 --- a/pages/invites/[id].js +++ b/pages/invites/[id].js @@ -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) {