From 6fec24a69d7c81cd267989507b06d1819b131179 Mon Sep 17 00:00:00 2001 From: femyeda Date: Fri, 25 Jun 2021 09:21:21 -0500 Subject: [PATCH] use lib folder --- {src => lib}/forgot-password/messaging/forgot-password.ts | 2 +- pages/api/auth/forgot-password.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename {src => lib}/forgot-password/messaging/forgot-password.ts (85%) diff --git a/src/forgot-password/messaging/forgot-password.ts b/lib/forgot-password/messaging/forgot-password.ts similarity index 85% rename from src/forgot-password/messaging/forgot-password.ts rename to lib/forgot-password/messaging/forgot-password.ts index 625d9f6022..fde5350ee1 100644 --- a/src/forgot-password/messaging/forgot-password.ts +++ b/lib/forgot-password/messaging/forgot-password.ts @@ -1,4 +1,4 @@ -import buildMessageTemplate from "../../../lib/emails/buildMessageTemplate"; +import buildMessageTemplate from "../../emails/buildMessageTemplate"; export const forgotPasswordSubjectTemplate = "Forgot your password? - Calendso"; diff --git a/pages/api/auth/forgot-password.ts b/pages/api/auth/forgot-password.ts index 415965955e..bf4280b8f8 100644 --- a/pages/api/auth/forgot-password.ts +++ b/pages/api/auth/forgot-password.ts @@ -3,7 +3,7 @@ import prisma from "../../../lib/prisma"; import dayjs from "dayjs"; import { User, ResetPasswordRequest } from "@prisma/client"; import sendEmail from "../../../lib/emails/sendMail"; -import { buildForgotPasswordMessage } from "../../../src/forgot-password/messaging/forgot-password"; +import { buildForgotPasswordMessage } from "../../../lib/forgot-password/messaging/forgot-password"; import timezone from "dayjs/plugin/timezone"; import utc from "dayjs/plugin/utc"; dayjs.extend(utc);