refactor(dokploy): add missing import

This commit is contained in:
Mauricio Siu
2024-10-26 19:56:34 -06:00
parent 3ef6c711e6
commit d2c0f19353
3 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { OnboardingLayout } from "@/components/layouts/onboarding-layout";
import { Logo } from "@/components/shared/logo";
import { CardDescription, CardTitle } from "@/components/ui/card";
import { db } from "@/server/db";
import { auth } from "@/server/db/schema";
import { IS_CLOUD, updateAuthById } from "@dokploy/server";
import { isBefore } from "date-fns";
@@ -54,7 +55,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
};
}
const authR = await db?.query.auth.findFirst({
const authR = await db.query.auth.findFirst({
where: eq(auth.confirmationToken, token),
});

View File

@@ -17,6 +17,7 @@ import {
FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import { db } from "@/server/db";
import { auth } from "@/server/db/schema";
import { api } from "@/utils/api";
import { IS_CLOUD } from "@dokploy/server";
@@ -194,7 +195,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
};
}
const authR = await db?.query.auth.findFirst({
const authR = await db.query.auth.findFirst({
where: eq(auth.resetPasswordToken, token),
});

View File

@@ -336,7 +336,6 @@ export function Pricing() {
<div
className={cn(
"justify-between",
// : "justify-end",
"flex flex-row items-center gap-2 mt-4",
)}
>