  getUserRewards: procedure
    .query(async ({ ctx: { session } }) => {
      if (!session || !session.user || !session.user.id) {
        throw new TRPCError({ code: 'UNAUTHORIZED' });
      }
      const userRaids = getUserRewards(session.user.id);

      return userRaids;
    }),

make this code better