Skip to content
Open
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion with-nextjs-14/src/app/booking/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default function BookerPage() {
view={view}
bannerUrl="https://i0.wp.com/mahala.co.uk/wp-content/uploads/2014/12/img_banner-thin_mountains.jpg?fit=800%2C258&ssl=1"
onCreateBookingSuccess={({ data }) => {
console.log("data: ", data);
alert("Booking has been created");
const { uid } = data;
router.push(`/booking/${uid}`);
Expand Down
2 changes: 0 additions & 2 deletions with-platform-supabase-tailwind-prisma/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ const devDb = new PrismaClient();

async function main() {
for (const filterOption of filterOptions) {
console.log(`attempting to upsert ${filterOption.fieldId}`);
await devDb.filterOption.upsert({
where: { fieldId: filterOption.fieldId },
create: filterOption,
update: filterOption,
});
console.log(`✅ {filterOption.fieldId} upserted`);
}
}

Expand Down
3 changes: 0 additions & 3 deletions with-platform-supabase-tailwind-prisma/src/app/_actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@ export async function expertEdit(
_prevState: { error: null | string } | { success: null | string },
formData: FormData
) {
console.log("[_actions] Updating expert with form data: ", formData);
const sesh = await auth();
if (!sesh?.user.id) {
console.log("[_actions] Unauthorized user edit", formData);
return { error: "Unauthorized" };
}
const formDataWithoutActionFields = Object.fromEntries(
Expand All @@ -165,7 +163,6 @@ export async function expertEdit(
.safeParse(formDataWithoutActionFields);

if (!userEdit.success) {
console.log("[_actions] Inavlid form data", formData);
return { error: "Invalid form data" };
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export async function GET(request: Request) {
const { data, error } = await supabaseAdmin.storage
.from("avatars")
.createSignedUploadUrl(id, { upsert: true });
console.log(error);
if (error) throw error;

return new Response(JSON.stringify(data), {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ export const SettingsContent = () => {
subtitlesClassName: "!text-sm !leading-relaxed !max-w-lg !text-balance !text-muted-foreground",
}}
onUpdateSuccess={() => {
console.log("[@calcom/atoms]: Updated successfully");
}}
onUpdateError={() => {
console.log("[@calcom/atoms]: Update error");
}}
onDeleteError={() => {
console.log("[@calcom/atoms]: Deletion error");
}}
onDeleteSuccess={() => {
console.log("[@calcom/atoms]: Deleted successfully");
}}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export async function createEventType(
) {
const sesh = await auth();
if (!sesh?.user.id) {
console.log("[_actions] Unauthorized user edit", formData);
return { error: "Unauthorized" };
}

Expand All @@ -33,7 +32,6 @@ export async function createEventType(
const input = post_EventTypesController_createEventType.parameters.safeParse(updateEventTypeParameters);

if (!input.success) {
console.log("[_actions] Invalid form data", formData);
return { error: "Invalid form data" };
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,17 @@ export default async function DashboardSettingsBookingEvents() {
}
const getEventTypes = await cal({ user: { id: sesh?.user.id } }).get("/v2/event-types");
if (getEventTypes.status === "error") {
console.error("[dashboard/settings/booking-events/page.tsx] Error fetching event types", getEventTypes);
// TODO debug this error
console.warn(`[dashboard/settings/booking-events/page.tsx] Error fetching event types. Check logs above`);
return (
<div className="flex flex-col items-center justify-center min-h-[400px] text-center">
<h2 className="text-2xl font-semibold text-destructive mb-2">Failed to Load Event Types</h2>
<p className="text-muted-foreground mb-4">
We encountered an error while fetching your event types. Please try refreshing the page or contact support if the problem persists.
</p>
<Button onClick={() => window.location.reload()} variant="outline">
Refresh Page
</Button>
</div>
);
}
const eventTypes = getEventTypes?.data?.eventTypeGroups?.flatMap((group) => group.eventTypes) ?? [
{
Expand Down
3 changes: 0 additions & 3 deletions with-platform-supabase-tailwind-prisma/src/cal/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ export async function signUp({ email, name, user }: CreateManagedUserInput & { u
});

if (userCreation.status === "error") {
console.log(
`[Cal auth] Unable to create user '${email}' on Cal Platform. Check the logs above for more details`
);
throw new Error(`Unable to create user '${email}' on Cal Platform`);
}

Expand Down