- Update GET signature to (req: NextRequest, ctx: { params: Promise<{id:string}> })
- Await ctx.params and pass id to Convex client
- Keeps NextResponse return type
|
||
|---|---|---|
| .. | ||
| alerts/hours-usage | ||
| clients | ||
| companies | ||
| invites | ||
| machines | ||
| users | ||
- Update GET signature to (req: NextRequest, ctx: { params: Promise<{id:string}> })
- Await ctx.params and pass id to Convex client
- Keeps NextResponse return type
|
||
|---|---|---|
| .. | ||
| alerts/hours-usage | ||
| clients | ||
| companies | ||
| invites | ||
| machines | ||
| users | ||