mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 03:09:34 +00:00
Upgrade Clerk, Next.js, and React to latest versions + minor code changes
This commit is contained in:
parent
a63270db0c
commit
a89c9a9b02
31 changed files with 140 additions and 130 deletions
|
@ -10,7 +10,7 @@ export async function GET(
|
|||
) {
|
||||
const params = await props.params;
|
||||
try {
|
||||
const { orgId, userId } = auth();
|
||||
const { orgId, userId } = await auth();
|
||||
|
||||
if (!orgId || !userId)
|
||||
return new NextResponse(JSON.stringify({ error: 'Unauthorized' }), {
|
||||
|
|
|
@ -9,7 +9,7 @@ export async function GET(
|
|||
) {
|
||||
const params = await props.params;
|
||||
try {
|
||||
const { orgId, userId } = auth();
|
||||
const { orgId, userId } = await auth();
|
||||
|
||||
if (!orgId || !userId)
|
||||
return new NextResponse(JSON.stringify({ error: 'Unauthorized' }), {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue