Skip to content

Commit

Permalink
minor import alias changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jul 14, 2024
1 parent e40ecbe commit 3f2d9d7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
3 changes: 1 addition & 2 deletions app/api/patient/appointment/route.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import dbConfig from "@utils/db";
import { dbConfig, getFormattedDate } from "@utils/index";
import { bookingAppointment } from "@types";
import { decrypt } from "@sessions/sessionUtils";
import { Types } from "mongoose";
import sendEmail from "@lib/sendemail";
import { render } from "@react-email/render";
import { AppointmentBookedTemplate } from "@lib/emails/templates";
import { getFormattedDate } from "@utils/getDate";
import sendNotification from "@lib/novu";
import { Patient, BookedAppointment, Doctor } from "@models/index";

Expand Down
3 changes: 1 addition & 2 deletions app/api/update-profile/address/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import dbConfig from "@utils/db";
import { dbConfig, getModelByRole } from "@utils/index";
import { decrypt } from "@sessions/sessionUtils";
import getModelByRole from "@utils/getModelByRole";

type AddressBody = {
address_line_1?: string;
Expand Down
3 changes: 1 addition & 2 deletions app/api/update-profile/personal/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import dbConfig from "@utils/db";
import { dbConfig, getModelByRole } from "@utils/index";
import { decrypt } from "@sessions/sessionUtils";
import getModelByRole from "@utils/getModelByRole";

type PersonalInfoBody = {
firstname?: string;
Expand Down
3 changes: 1 addition & 2 deletions app/api/update-profile/profile/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import dbConfig from "@utils/db";
import { dbConfig, getModelByRole } from "@utils/index";
import { decrypt } from "@sessions/sessionUtils";
import getModelByRole from "@utils/getModelByRole";

export async function PUT(request: Request) {
const session = request.headers.get("Authorization");
Expand Down
3 changes: 1 addition & 2 deletions app/api/update-profile/reset-password/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { dbConfig, getModelByRole } from "@utils/index";
import { decrypt } from "@sessions/sessionUtils";
import dbConfig from "@utils/db";
import bcrypt from "bcrypt";
import getModelByRole from "@utils/getModelByRole";

type SecurityBody = {
currentPassword: string;
Expand Down

0 comments on commit 3f2d9d7

Please sign in to comment.