Skip to content

Commit

Permalink
Merge pull request #3 from CSCC012023/bugfix/vercel-deployment-api-ty…
Browse files Browse the repository at this point in the history
…ping

Fix: Vercel deployment broken due to Typescript hints not present
  • Loading branch information
mirajismail authored Jun 2, 2023
2 parents fd2ea14 + b904b2e commit 73a4bdd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions citrus/app/api/users/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import * as db from '../../../../lib/db'
import { NextResponse } from 'next/server';

// Retrieve a paginated list of all users in the database
export async function GET(request: Request , { params }) {
const res = await db.query("SELECT * FROM _temp WHERE username = $1", [params.id]);
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const id = searchParams.get('id');
const res = await db.query("SELECT * FROM _temp WHERE username = $1", [id]);
const user = res.rows;
return NextResponse.json(user);
}

1 comment on commit 73a4bdd

@vercel
Copy link

@vercel vercel bot commented on 73a4bdd Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mirajismail is attempting to deploy a commit to the citrus-c01 Team on Vercel.

To accomplish this, @mirajismail needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

Please sign in to comment.