Skip to content

Commit

Permalink
adds debug
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelp committed Jan 8, 2025
1 parent 2b1a229 commit fe4864f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/web/src/actions/user-profile-mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { z } from "zod";
import { db } from "db";
import { userCommonData, userHackerData } from "db/schema";
import { eq } from "db/drizzle";
import { del, put } from "@vercel/blob";
import { del } from "@vercel/blob";
import { decodeBase64AsFile } from "@/lib/utils/shared/files";
import { revalidatePath } from "next/cache";
import { UNIQUE_KEY_CONSTRAINT_VIOLATION_CODE } from "@/lib/constants";
Expand Down Expand Up @@ -124,7 +124,6 @@ export const deleteResume = authenticatedAction
}),
)
.action(async ({ parsedInput: { oldFileLink } }) => {
console.log("called");
if (oldFileLink === c.noResumeProvidedURL) return null;
await del(oldFileLink);
});
Expand Down Expand Up @@ -167,7 +166,7 @@ export const modifyAccountSettings = authenticatedAction
})
.where(eq(userCommonData.clerkID, userId));
} catch (err) {
console.log('error is', err);
console.log("modifyAccountSettings error is", err);
if (
err instanceof DatabaseError &&
err.code === UNIQUE_KEY_CONSTRAINT_VIOLATION_CODE
Expand Down Expand Up @@ -204,6 +203,7 @@ export const updateProfileImage = authenticatedAction
},
);
} catch (err) {
console.log(`Error updating Clerk profile image: ${err}`);
if (
typeof err === "object" &&
err != null &&
Expand All @@ -215,7 +215,7 @@ export const updateProfileImage = authenticatedAction
message: "file_too_large",
};
}
console.error(`Error updating Clerk profile image: ${err}`);
console.log(`Unknown Error updating Clerk profile image: ${err}`);
throw err;
}

Expand Down

0 comments on commit fe4864f

Please sign in to comment.