Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions actions/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export async function updateUser(data) {
where: { clerkUserId: userId },
});


if (!user) throw new Error("User not found");

try {
Expand Down Expand Up @@ -67,6 +68,9 @@ export async function updateUser(data) {
}
}




export async function getUserOnboardingStatus() {
const { userId } = await auth();
if (!userId) throw new Error("Unauthorized");
Expand Down