oss-apps / split-pro

Open source alternative to Splitwise
https://splitpro.app
MIT License
371 stars 36 forks source link

Invite link does not work #102

Closed Striffly closed 1 month ago

Striffly commented 2 months ago

Hi, When I use an invite link to share with a friend, they cannot join the group.

Process

Logs

Here is my error logs from console :

prisma:query SELECT "t1"."id", "t1"."sessionToken", "t1"."userId", "t1"."expires", "Session_user"."__prisma_data__" AS "user" FROM "public"."Session" AS "t1" LEFT JOIN LATERAL (SELECT COALESCE(JSONB_AGG("__prisma_data__"), '[]') AS "__prisma_data__" FROM (SELECT "t4"."__prisma_data__" FROM (SELECT JSONB_BUILD_OBJECT('id', "t3"."id", 'name', "t3"."name", 'email', "t3"."email", 'emailVerified', "t3"."emailVerified", 'image', "t3"."image", 'currency', "t3"."currency") AS "__prisma_data__" FROM (SELECT "t2".* FROM "public"."User" AS "t2" WHERE "t1"."userId" = "t2"."id" /* root select */) AS "t3" /* inner select */) AS "t4" /* middle select */) AS "t5" /* outer select */) AS "Session_user" ON true WHERE "t1"."sessionToken" IN ($1,$2)
❌ tRPC failed on group.getGroupDetails: [
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "nan",
    "path": [
      "groupId"
    ],
    "message": "Expected number, received nan"
  }
]
❌ tRPC failed on group.getExpenses: [
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "nan",
    "path": [
      "groupId"
    ],
    "message": "Expected number, received nan"
  }
]

Environment