Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: cleanup

Marc Seitze3e40d3b8adb
diff --git a/ee/features/billing/cancellation/api/send-pause-resume-notification.ts b/ee/features/billing/cancellation/api/send-pause-resume-notification.ts
index 0ea89831..c1fc1478 100644
--- a/ee/features/billing/cancellation/api/send-pause-resume-notification.ts
+++ b/ee/features/billing/cancellation/api/send-pause-resume-notification.ts
@@ -1,6 +1,5 @@
import { NextApiRequest, NextApiResponse } from "next";
-import { sendConversationTeamNotification } from "@/ee/features/conversations/emails/lib/send-conversation-team-notification";
import { getDisplayNameFromPlan } from "@/ee/stripe/functions/get-display-name-from-plan";
import { z } from "zod";
@@ -115,7 +114,6 @@ export default async function handle(
res.status(200).json({
message: "Successfully sent pause resume reminder to team members",
notified: teamMemberEmails.length,
- teamMemberEmails,
});
return;
} catch (error) {
@@ -124,6 +122,8 @@ export default async function handle(
type: "error",
mention: true,
});
- return res.status(500).json({ message: (error as Error).message });
+ return res
+ .status(500)
+ .json({ message: "Failed to send pause resume reminder" });
}
}
diff --git a/ee/features/billing/cancellation/components/cancellation-modal.tsx b/ee/features/billing/cancellation/components/cancellation-modal.tsx
index cbd9c8c0..0a3c48c5 100644
--- a/ee/features/billing/cancellation/components/cancellation-modal.tsx
+++ b/ee/features/billing/cancellation/components/cancellation-modal.tsx
@@ -5,7 +5,6 @@ import { toast } from "sonner";
import { mutate } from "swr";
import { useAnalytics } from "@/lib/analytics";
-import { usePlan } from "@/lib/swr/use-billing";
import { type CancellationReason } from "../lib/constants";
import { ConfirmCancellationModal } from "./confirm-cancellation-modal";
@@ -42,7 +41,6 @@ export function CancellationModal({
const [loading, setLoading] = useState(false);
const { currentTeamId } = useTeam();
- const { mutate: mutatePlan } = usePlan();
const analytics = useAnalytics();
const reasons: { value: CancellationReason; label: string }[] = [
@@ -60,7 +58,6 @@ export function CancellationModal({
useEffect(() => {
if (!open) {
const timeoutId = setTimeout(() => {
- console.log("Modal closed, resetting state");
setCurrentStep("pause-offer");
setSelectedReason(null);
setFeedback("");
diff --git a/ee/stripe/functions/get-subscription-item.ts b/ee/stripe/functions/get-subscription-item.ts
index 0c6a9afd..a966efe4 100644
--- a/ee/stripe/functions/get-subscription-item.ts
+++ b/ee/stripe/functions/get-subscription-item.ts
@@ -35,8 +35,6 @@ export default async function getSubscriptionItem(
};
}
- console.log(discount);
-
return {
id: subscriptionItem.id,
currentPeriodStart: subscription.current_period_start,