Skip to content

Commit

Permalink
tried get auth
Browse files Browse the repository at this point in the history
  • Loading branch information
RikhiSingh committed May 10, 2024
1 parent 4f0accc commit 68c6e39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/queries.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { cache } from "react";
import db from "@/db/drizzle";
import { auth } from "@clerk/nextjs";
import { getAuth } from "@clerk/nextjs/server";
import { eq } from "drizzle-orm";
import { userProgress } from "@/db/schema";

export const getUserProgress = cache(async()=>{
const {userId} = await auth();
const {userId} = await getAuth();

if(!userId){
return null;
Expand Down

0 comments on commit 68c6e39

Please sign in to comment.