From 7bc10e29a6e150534be5c67418cc52cd18d6d410 Mon Sep 17 00:00:00 2001 From: Rithick Date: Tue, 9 Jul 2024 10:36:23 +0530 Subject: [PATCH] fix:ts error while building due to (@) alias --- chat-service/src/_boot/consumer.ts | 4 +- chat-service/src/_boot/dependencies.ts | 2 +- .../src/application/interfaces/IUseCases.ts | 2 +- .../useCases/createMessageUseCase.ts | 2 +- chat-service/src/index.ts | 4 +- .../database/mongoDB/models/user.ts | 2 +- .../mongoDB/repositories/chat/createChat.ts | 2 +- .../repositories/chat/createMessage.ts | 2 +- .../mongoDB/repositories/chat/findChatById.ts | 2 +- .../repositories/chat/findChatByUserId.ts | 2 +- .../repositories/chat/findGroupByUserId.ts | 2 +- .../mongoDB/repositories/chat/setLastSeen.ts | 2 +- .../mongoDB/repositories/user/createUser.ts | 2 +- .../kafka/consumers/createGroupChat.ts | 2 +- .../kafka/consumers/handleUserStatusChange.ts | 2 +- .../individualChatCreationConsumer.ts | 2 +- .../consumers/updateUserProfileConsumer.ts | 4 +- .../kafka/consumers/updateUserRoleConsumer.ts | 2 +- .../kafka/consumers/userCreatedConsumer.ts | 4 +- .../src/infrastructure/routes/index.ts | 4 +- .../controllers/createChatController.ts | 2 +- .../controllers/createMessageController.ts | 2 +- .../controllers/findNotification.ts | 2 +- .../controllers/getChatAndMessages.ts | 2 +- .../controllers/getChatByUserId.ts | 2 +- .../src/presentation/controllers/index.ts | 2 +- chat-service/src/presentation/index.ts | 6 +-- course-service/src/_boot/consumer.ts | 4 +- course-service/src/_boot/dependencies.ts | 6 +-- .../_lib/common/middlewares/jwtMiddleware.ts | 2 +- .../_lib/common/middlewares/verifyAdmin.ts | 4 +- .../common/middlewares/verifyInstructor.ts | 2 +- .../application/interfaces/IRepositories.ts | 2 +- .../src/application/interfaces/IUsecases.ts | 4 +- .../category/createCategoryUseCase.ts | 2 +- .../category/updateCategoryUseCase.ts | 2 +- .../useCases/course/PublishCoursesUseCase.ts | 2 +- .../useCases/course/createCourseUseCase.ts | 4 +- .../useCases/course/editCourseUseCase.ts | 4 +- .../useCases/course/getAllCoursesUseCase.ts | 2 +- .../useCases/course/getCourseUseCase.ts | 2 +- .../course/getInstructorCourseUseCase.ts | 2 +- .../course/getPublishedCoursesUseCase.ts | 2 +- .../course/updateCourseStatusUseCase.ts | 2 +- .../enrollment/adminDashboardUseCase.ts | 2 +- .../enrollment/enrollmentProgressUseCase.ts | 2 +- .../getEnrollmentByUserIdUseCase.ts | 2 +- .../enrollment/getEnrollmentUseCase.ts | 2 +- ...EnrollmentsForInstructorOverTimeUseCase.ts | 2 +- .../enrollment/getTopCourseUseCase.ts | 2 +- .../getTopCoursesForInstructorUseCase.ts | 2 +- .../getTotalCoursesForInstructorUseCase.ts | 2 +- .../getTotalStudentsForInstructorUseCase.ts | 2 +- .../useCases/enrollment/myStudentsUseCase.ts | 2 +- .../useCases/enrollment/paymentListUseCase.ts | 2 +- .../useCases/enrollment/salesReportUseCase.ts | 2 +- .../useCases/exams/createExamUseCase.ts | 2 +- .../useCases/exams/getExamUseCase.ts | 2 +- .../useCases/exams/submitExamUseCase.ts | 2 +- .../useCases/review/createReviewUseCase.ts | 4 +- .../useCases/review/getReviewUseCase.ts | 2 +- .../category/ICreateCategoryUseCase.ts | 2 +- .../category/IGetAllCategoriesUseCase.ts | 2 +- .../IGetAvailableCategoriesUseCase.ts | 2 +- .../category/IUpdateCategoryUseCase.ts | 2 +- .../useCases/course/ICreateCourseUseCase.ts | 2 +- .../useCases/course/IEditCourseUseCase.ts | 2 +- .../useCases/course/IGetAllCoursesUseCase.ts | 2 +- .../useCases/course/IGetCourseUseCase.ts | 2 +- .../course/IGetInstructorCourseUseCase.ts | 2 +- .../course/IGetPublishedCoursesUseCase.ts | 2 +- .../useCases/course/IPublishCoursesUseCase.ts | 2 +- .../course/IUpdateCourseStatusUseCase.ts | 2 +- .../enrollment/IEnrollmentProgressUseCase.ts | 2 +- .../enrollment/IGetEnrollmentUseCase.ts | 2 +- .../useCases/enrollment/IMyStudentsUseCase.ts | 2 +- .../useCases/exams/ISubmitExamUseCase.ts | 2 +- .../useCases/review/ICreateReviewUseCase.ts | 2 +- .../useCases/review/IGetReviewUseCase.ts | 2 +- course-service/src/index.ts | 6 +-- .../database/mongoDB/models/category.ts | 2 +- .../database/mongoDB/models/course.ts | 2 +- .../database/mongoDB/models/enrollment.ts | 2 +- .../database/mongoDB/models/examResult.ts | 2 +- .../database/mongoDB/models/review.ts | 2 +- .../database/mongoDB/models/user.ts | 2 +- .../repositories/category/createCategory.ts | 2 +- .../repositories/category/updateCategory.ts | 2 +- .../repositories/course/courseRepository.ts | 2 +- .../repositories/course/createCourse.ts | 2 +- .../mongoDB/repositories/course/editCourse.ts | 2 +- .../mongoDB/repositories/course/getCourse.ts | 2 +- .../course/getInstructorCourse.ts | 2 +- .../course/getPublishedAndUnblocked.ts | 2 +- .../repositories/course/publishCourse.ts | 2 +- .../course/publishCourse/publishCourse.ts | 0 .../repositories/course/updateCourseStatus.ts | 2 +- .../repositories/enrollment/adminDashboard.ts | 2 +- .../enrollment/createEnrollment.ts | 4 +- .../enrollment/enrollmentProgress.ts | 2 +- .../repositories/enrollment/getEnrollment.ts | 4 +- .../enrollment/getEnrollmentByUserId.ts | 4 +- .../repositories/enrollment/myStudents.ts | 4 +- .../mongoDB/repositories/exams/submitExam.ts | 2 +- .../repositories/review/createReview.ts | 2 +- .../mongoDB/repositories/review/getReview.ts | 2 +- .../mongoDB/repositories/user/createUser.ts | 2 +- .../mongoDB/repositories/user/findUserById.ts | 2 +- .../consumers/coursePaymentSuccessConsumer.ts | 8 ++-- .../kafka/consumers/handleUserStatusChange.ts | 2 +- .../kafka/consumers/subscriptionConsumer.ts | 2 +- .../consumers/updateUserProfileConsumer.ts | 4 +- .../kafka/consumers/updateUserRoleConsumer.ts | 2 +- .../kafka/consumers/userCreatedConsumer.ts | 4 +- .../src/infrastructure/routes/index.ts | 8 ++-- .../category/createCategoryController.ts | 2 +- .../category/getAllCategoriesController.ts | 13 ++++--- .../getAvailableCategoriesController.ts | 2 +- .../category/updateCategoryController.ts | 2 +- .../course/courseManagementController.ts | 2 +- .../course/createCourseController.ts | 2 +- .../controllers/course/createEndpointUrl.ts | 2 +- .../course/editCourseController.ts | 2 +- .../course/getAllCoursesController.ts | 2 +- .../controllers/course/getCourseController.ts | 2 +- .../course/getPublishedCoursesController.ts | 2 +- .../course/instructorCourseController.ts | 2 +- .../course/updateCourseController.ts | 2 +- .../course/updateCourseStatusController.ts | 2 +- .../enrollment/adminDashboardController.ts | 2 +- .../enrollment/adminPaymentController.ts | 2 +- .../enrollmentProgressController.ts | 2 +- .../enrollment/getEnrolledController.ts | 2 +- .../getEnrollmentByUserIdController.ts | 2 +- .../instructorDashboardController.ts | 2 +- .../enrollment/myStudentController.ts | 2 +- .../enrollment/salesReportController.ts | 2 +- .../controllers/exam/createExamController.ts | 2 +- .../controllers/exam/getExamController.ts | 2 +- .../controllers/exam/submitExamController.ts | 2 +- .../src/presentation/controllers/index.ts | 12 +++--- .../reviews/createReviewController.ts | 2 +- .../reviews/getReviewsController.ts | 2 +- course-service/src/presentation/index.ts | 4 +- notification-service/src/__boot/consumer.ts | 4 +- .../src/__boot/dependencies.ts | 2 +- notification-service/src/index.ts | 2 +- .../consumers/instructorEmailconfirmation.ts | 3 +- .../requestForgotPasswordConsumer.ts | 5 +-- .../kafka/consumers/userCreatedConsumer.ts | 6 +-- .../src/infrastructure/routes/index.ts | 6 +-- .../src/infrastructure/services/index.ts | 6 +-- .../services/instructorNotification.ts | 2 +- .../services/sendChangePasswordMail.ts | 2 +- .../src/presentation/controllers/index.ts | 2 +- .../controllers/sendVerificationMail.ts | 38 +++++++++---------- .../src/presentation/server.ts | 4 +- payment-service/src/_boot/dependencies.ts | 4 +- .../application/interfaces/IRepositories.ts | 2 +- .../src/application/interfaces/IUseCases.ts | 2 +- .../useCases/IGetSubscriptionDataUseCase.ts | 2 +- .../domain/useCases/ISavePaymentUseCase.ts | 2 +- payment-service/src/index.ts | 4 +- .../repositories/getSubscriptionData.ts | 2 +- .../database/repositories/savePayment.ts | 2 +- .../src/infrastructure/routes/index.ts | 4 +- .../controllers/createCheckoutSession.ts | 2 +- .../controllers/createSubscriptionSession.ts | 2 +- .../controllers/getSubscriptionData.ts | 2 +- .../src/presentation/controllers/index.ts | 2 +- .../presentation/controllers/savePayment.ts | 4 +- .../controllers/subscriptionWebhook.ts | 8 ++-- payment-service/src/presentation/index.ts | 4 +- 173 files changed, 244 insertions(+), 253 deletions(-) delete mode 100644 course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse/publishCourse.ts diff --git a/chat-service/src/_boot/consumer.ts b/chat-service/src/_boot/consumer.ts index 7c621a4..3e7f2ea 100644 --- a/chat-service/src/_boot/consumer.ts +++ b/chat-service/src/_boot/consumer.ts @@ -1,5 +1,5 @@ -import { consumer } from "@/infrastructure/kafka/index"; -import { IChatSubscriber, createSubscriber } from "@/infrastructure/kafka/subscribe"; +import { consumer } from "../infrastructure/kafka/index"; +import { IChatSubscriber, createSubscriber } from "../infrastructure/kafka/subscribe"; import { EachMessagePayload } from "kafkajs"; export const runConsumer = async () => { diff --git a/chat-service/src/_boot/dependencies.ts b/chat-service/src/_boot/dependencies.ts index 6bb94e9..2865c95 100644 --- a/chat-service/src/_boot/dependencies.ts +++ b/chat-service/src/_boot/dependencies.ts @@ -1,5 +1,5 @@ import * as repositories from '../infrastructure/database/mongoDB/repositories' -import { IDependencies } from "@/application/interfaces/IDependencies" +import { IDependencies } from "../application/interfaces/IDependencies" import * as useCases from "../application/useCases" export const dependencies:IDependencies={ diff --git a/chat-service/src/application/interfaces/IUseCases.ts b/chat-service/src/application/interfaces/IUseCases.ts index 2603b2b..6487223 100644 --- a/chat-service/src/application/interfaces/IUseCases.ts +++ b/chat-service/src/application/interfaces/IUseCases.ts @@ -1,4 +1,4 @@ -import { ICreateChatUseCase, ICreateMessageUseCase, IFindNotificationUseCase, IfindChatByUseCase, IfindChatByUserIdUseCase, IfindGroupByUserUseCase } from "@/domain/useCases"; +import { ICreateChatUseCase, ICreateMessageUseCase, IFindNotificationUseCase, IfindChatByUseCase, IfindChatByUserIdUseCase, IfindGroupByUserUseCase } from "../../domain/useCases"; import { IDependencies } from "./IDependencies"; export interface IUseCases{ diff --git a/chat-service/src/application/useCases/createMessageUseCase.ts b/chat-service/src/application/useCases/createMessageUseCase.ts index bbb6538..3a4b3f2 100644 --- a/chat-service/src/application/useCases/createMessageUseCase.ts +++ b/chat-service/src/application/useCases/createMessageUseCase.ts @@ -1,4 +1,4 @@ -import { MessageEntity } from "@/domain/entities"; +import { MessageEntity } from "../../domain/entities"; import { IDependencies } from "../interfaces/IDependencies"; export const createMessageUseCase =(dependencies:IDependencies)=>{ diff --git a/chat-service/src/index.ts b/chat-service/src/index.ts index bb91802..550d44b 100644 --- a/chat-service/src/index.ts +++ b/chat-service/src/index.ts @@ -1,5 +1,5 @@ -import database from "@/_boot/config"; -import server from "@/presentation/index"; +import database from "./_boot/config"; +import server from "./presentation"; import { runConsumer, stopConsumer } from "./_boot/consumer"; (async () => { diff --git a/chat-service/src/infrastructure/database/mongoDB/models/user.ts b/chat-service/src/infrastructure/database/mongoDB/models/user.ts index 883cee9..d9baf17 100644 --- a/chat-service/src/infrastructure/database/mongoDB/models/user.ts +++ b/chat-service/src/infrastructure/database/mongoDB/models/user.ts @@ -1,5 +1,5 @@ import { Schema, model } from "mongoose"; -import { UserEntity } from "@/domain/entities"; +import { UserEntity } from "../../../../domain/entities"; const userSchema = new Schema({ firstName: { diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createChat.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createChat.ts index fbd18ca..fe53a78 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createChat.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createChat.ts @@ -1,4 +1,4 @@ -import { ChatEntity } from "@/domain/entities"; +import { ChatEntity } from "../../../../../domain/entities"; import { User } from "../../models/user"; import { Chat } from "../../models/chat"; diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createMessage.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createMessage.ts index d302b5b..bf9a9f8 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createMessage.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/createMessage.ts @@ -1,4 +1,4 @@ -import { MessageEntity } from "@/domain/entities"; +import { MessageEntity } from "../../../../../domain/entities"; import { Chat } from "../../models/chat"; import { Message } from "../../models/message"; diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatById.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatById.ts index ef624b3..981d3e9 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatById.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatById.ts @@ -1,4 +1,4 @@ -import { ChatEntity } from "@/domain/entities"; +import { ChatEntity } from "../../../../../domain/entities"; import { Chat } from "../../models/chat"; export const findChatById = async (chatId: string): Promise => { diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatByUserId.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatByUserId.ts index 2cb2f63..3039c89 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatByUserId.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findChatByUserId.ts @@ -1,4 +1,4 @@ -import { ChatEntity } from "@/domain/entities"; +import { ChatEntity } from "../../../../../domain/entities"; import { Chat } from "../../models/chat"; import { Types } from "mongoose"; diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findGroupByUserId.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findGroupByUserId.ts index 627bf38..0458d53 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findGroupByUserId.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/findGroupByUserId.ts @@ -1,4 +1,4 @@ -import { ChatEntity } from "@/domain/entities"; +import { ChatEntity } from "../../../../../domain/entities"; import { Chat } from "../../models/chat"; import { Types } from "mongoose"; diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/setLastSeen.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/setLastSeen.ts index 1cc3a5c..420cf6b 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/chat/setLastSeen.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/chat/setLastSeen.ts @@ -1,4 +1,4 @@ -import { ChatEntity } from "@/domain/entities"; +import { ChatEntity } from "../../../../../domain/entities"; import { Chat } from "../../models/chat"; import { Types } from "mongoose"; diff --git a/chat-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts b/chat-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts index 6cdfddf..d902c20 100644 --- a/chat-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts +++ b/chat-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts @@ -1,6 +1,6 @@ import { ErrorResponse } from "@learnwise/common"; import { User } from "../../models/user"; -import { UserEntity } from "@/domain/entities"; +import { UserEntity } from "../../../../../domain/entities"; export const createUser = async ( data: UserEntity diff --git a/chat-service/src/infrastructure/kafka/consumers/createGroupChat.ts b/chat-service/src/infrastructure/kafka/consumers/createGroupChat.ts index 638a223..7f8154e 100644 --- a/chat-service/src/infrastructure/kafka/consumers/createGroupChat.ts +++ b/chat-service/src/infrastructure/kafka/consumers/createGroupChat.ts @@ -1,4 +1,4 @@ -import { createChat } from "@/infrastructure/database/mongoDB/repositories" +import { createChat } from "../../database/mongoDB/repositories" export default async( diff --git a/chat-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts b/chat-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts index 682d61f..314f2b1 100644 --- a/chat-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts +++ b/chat-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts @@ -1,4 +1,4 @@ -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { User } from "../../database/mongoDB/models/user"; export async function userBlockStatusChanged(data: { id: string; diff --git a/chat-service/src/infrastructure/kafka/consumers/individualChatCreationConsumer.ts b/chat-service/src/infrastructure/kafka/consumers/individualChatCreationConsumer.ts index 9835ee7..dc9dee8 100644 --- a/chat-service/src/infrastructure/kafka/consumers/individualChatCreationConsumer.ts +++ b/chat-service/src/infrastructure/kafka/consumers/individualChatCreationConsumer.ts @@ -1,4 +1,4 @@ -import { createChat } from "@/infrastructure/database/mongoDB/repositories"; +import { createChat } from "../../database/mongoDB/repositories"; export default async( diff --git a/chat-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts b/chat-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts index cc2ea0b..46cf8a3 100644 --- a/chat-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts +++ b/chat-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts @@ -1,5 +1,5 @@ -import { UserEntity } from "@/domain/entities"; -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { UserEntity } from "../../../domain/entities"; +import { User } from "../../database/mongoDB/models/user"; export async function updateUserProfileConsumer(data: { kafkaMessage: { email: string, updatedUserData: UserEntity }}): Promise{ try { diff --git a/chat-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts b/chat-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts index 7b095df..0249591 100644 --- a/chat-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts +++ b/chat-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts @@ -1,4 +1,4 @@ -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { User } from "../../database/mongoDB/models/user"; export async function updateUserRoleConsumer(data: { email: string; diff --git a/chat-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts b/chat-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts index 2b66c11..af51a2c 100644 --- a/chat-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts +++ b/chat-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts @@ -1,5 +1,5 @@ -import { UserEntity } from "@/domain/entities"; -import { createUser } from "@/infrastructure/database/mongoDB/repositories/user/createUser"; +import { UserEntity } from "../../../domain/entities"; +import { createUser } from "../../database/mongoDB/repositories/user/createUser"; export default async (data: UserEntity) => { try { diff --git a/chat-service/src/infrastructure/routes/index.ts b/chat-service/src/infrastructure/routes/index.ts index 88f6934..ffd49dd 100644 --- a/chat-service/src/infrastructure/routes/index.ts +++ b/chat-service/src/infrastructure/routes/index.ts @@ -1,5 +1,5 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { controllers } from "@/presentation/controllers"; +import { IDependencies } from "../../application/interfaces/IDependencies"; +import { controllers } from "../../presentation/controllers"; import { Router } from "express"; export const router = (dependencies: IDependencies) => { diff --git a/chat-service/src/presentation/controllers/createChatController.ts b/chat-service/src/presentation/controllers/createChatController.ts index 9928f0f..6e81b24 100644 --- a/chat-service/src/presentation/controllers/createChatController.ts +++ b/chat-service/src/presentation/controllers/createChatController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { Request, Response, NextFunction } from "express"; import mongoose from 'mongoose'; diff --git a/chat-service/src/presentation/controllers/createMessageController.ts b/chat-service/src/presentation/controllers/createMessageController.ts index 5717f74..7958287 100644 --- a/chat-service/src/presentation/controllers/createMessageController.ts +++ b/chat-service/src/presentation/controllers/createMessageController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { NextFunction, Request, Response } from "express"; export const createMessageController = (dependecies: IDependencies) => { diff --git a/chat-service/src/presentation/controllers/findNotification.ts b/chat-service/src/presentation/controllers/findNotification.ts index ff57a50..3464fa3 100644 --- a/chat-service/src/presentation/controllers/findNotification.ts +++ b/chat-service/src/presentation/controllers/findNotification.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { NextFunction, Request, Response } from "express"; export const findNotificationController=(dependencies:IDependencies)=>{ diff --git a/chat-service/src/presentation/controllers/getChatAndMessages.ts b/chat-service/src/presentation/controllers/getChatAndMessages.ts index eba71dc..8560c54 100644 --- a/chat-service/src/presentation/controllers/getChatAndMessages.ts +++ b/chat-service/src/presentation/controllers/getChatAndMessages.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { NextFunction, Request, Response } from "express"; export const getChatAndMessages=(dependancies:IDependencies)=>{ diff --git a/chat-service/src/presentation/controllers/getChatByUserId.ts b/chat-service/src/presentation/controllers/getChatByUserId.ts index aa7e032..ddcfef9 100644 --- a/chat-service/src/presentation/controllers/getChatByUserId.ts +++ b/chat-service/src/presentation/controllers/getChatByUserId.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { NextFunction, Request, Response } from "express"; diff --git a/chat-service/src/presentation/controllers/index.ts b/chat-service/src/presentation/controllers/index.ts index c8c8058..8c4cb00 100644 --- a/chat-service/src/presentation/controllers/index.ts +++ b/chat-service/src/presentation/controllers/index.ts @@ -1,4 +1,4 @@ -import { IDependencies } from '@/application/interfaces/IDependencies' +import { IDependencies } from '../../application/interfaces/IDependencies' import { createChatController } from './createChatController' import { createMessageController } from './createMessageController' import { getChatAndMessages } from './getChatAndMessages' diff --git a/chat-service/src/presentation/index.ts b/chat-service/src/presentation/index.ts index 0789a3d..1fb4539 100644 --- a/chat-service/src/presentation/index.ts +++ b/chat-service/src/presentation/index.ts @@ -7,9 +7,9 @@ import helmet from "helmet"; import cors from "cors"; import http from "http"; import morgan from "morgan"; -import connectSocketIo from "@/infrastructure/socket"; -import { router } from "@/infrastructure/routes"; -import { dependencies } from "@/_boot/dependencies"; +import connectSocketIo from "../infrastructure/socket"; +import { router } from "../infrastructure/routes"; +import { dependencies } from "../_boot/dependencies"; dotenv.config(); diff --git a/course-service/src/_boot/consumer.ts b/course-service/src/_boot/consumer.ts index c1f4b53..734d92e 100644 --- a/course-service/src/_boot/consumer.ts +++ b/course-service/src/_boot/consumer.ts @@ -1,5 +1,5 @@ -import { consumer } from "@/infrastructure/kafka/index"; -import { createSubscriber,ICourseSubscriber } from "@/infrastructure/kafka/subscriber"; +import { consumer } from "../infrastructure/kafka/index"; +import { createSubscriber,ICourseSubscriber } from "../infrastructure/kafka/subscriber"; export const runConsumer = async () => { try { diff --git a/course-service/src/_boot/dependencies.ts b/course-service/src/_boot/dependencies.ts index 6beb22e..ba45037 100644 --- a/course-service/src/_boot/dependencies.ts +++ b/course-service/src/_boot/dependencies.ts @@ -1,6 +1,6 @@ -import * as repositories from "@/infrastructure/database/mongoDB/repositories"; -import * as useCases from "@/application/useCases"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import * as repositories from "../infrastructure/database/mongoDB/repositories"; +import * as useCases from "../application/useCases"; +import { IDependencies } from "../application/interfaces/IDependencies"; export const dependencies: IDependencies = { repositories, diff --git a/course-service/src/_lib/common/middlewares/jwtMiddleware.ts b/course-service/src/_lib/common/middlewares/jwtMiddleware.ts index 6ab03d8..914d2ca 100644 --- a/course-service/src/_lib/common/middlewares/jwtMiddleware.ts +++ b/course-service/src/_lib/common/middlewares/jwtMiddleware.ts @@ -1,5 +1,5 @@ import jwt from 'jsonwebtoken'; -import { generateAccessToken } from "@/_lib/jwt"; +import { generateAccessToken } from "../../../_lib/jwt"; import { Request, Response, NextFunction } from "express"; interface UserPayload { diff --git a/course-service/src/_lib/common/middlewares/verifyAdmin.ts b/course-service/src/_lib/common/middlewares/verifyAdmin.ts index 47c9a31..459c42d 100644 --- a/course-service/src/_lib/common/middlewares/verifyAdmin.ts +++ b/course-service/src/_lib/common/middlewares/verifyAdmin.ts @@ -1,6 +1,6 @@ import { Request, Response, NextFunction } from "express"; -import {ErrorResponse} from "@/_lib/common/error" -import { findUserById } from "@/infrastructure/database/mongoDB/repositories"; +import {ErrorResponse} from "../../../_lib/common/error" +import { findUserById } from "../../../infrastructure/database/mongoDB/repositories"; export const verifyAdmin = async (req: Request, res: Response, next: NextFunction) => { diff --git a/course-service/src/_lib/common/middlewares/verifyInstructor.ts b/course-service/src/_lib/common/middlewares/verifyInstructor.ts index 5ae3ce9..688effc 100644 --- a/course-service/src/_lib/common/middlewares/verifyInstructor.ts +++ b/course-service/src/_lib/common/middlewares/verifyInstructor.ts @@ -1,6 +1,6 @@ import { Request, Response, NextFunction } from "express"; import { ErrorResponse } from "../error"; -import { findUserById } from "@/infrastructure/database/mongoDB/repositories"; +import { findUserById } from "./../../../infrastructure/database/mongoDB/repositories"; export const verifyInstructor = async (req: Request, res: Response, next: NextFunction) => { diff --git a/course-service/src/application/interfaces/IRepositories.ts b/course-service/src/application/interfaces/IRepositories.ts index f42840e..c80dae7 100644 --- a/course-service/src/application/interfaces/IRepositories.ts +++ b/course-service/src/application/interfaces/IRepositories.ts @@ -4,7 +4,7 @@ import { IReview, CategoryEntity, CourseEntity, -} from "@/domain/entities"; +} from "../../domain/entities"; export interface IRepositories { getAllCategories: ( diff --git a/course-service/src/application/interfaces/IUsecases.ts b/course-service/src/application/interfaces/IUsecases.ts index 41fe75c..18414ff 100644 --- a/course-service/src/application/interfaces/IUsecases.ts +++ b/course-service/src/application/interfaces/IUsecases.ts @@ -25,9 +25,9 @@ import { IEditCourseUseCase, IEnrollmentProgressUseCase, IGetEnrollmentByUserIdUseCase -} from "@/domain/useCases"; +} from "../../domain/useCases"; import { IDependencies } from "./IDependencies"; -import { ICreateExamUseCase, IGetExamUseCase, ISubmitExamUseCase } from "@/domain/useCases/exams"; +import { ICreateExamUseCase, IGetExamUseCase, ISubmitExamUseCase } from "../../domain/useCases/exams"; export interface IUseCases { getAllCategoriesUseCase: ( diff --git a/course-service/src/application/useCases/category/createCategoryUseCase.ts b/course-service/src/application/useCases/category/createCategoryUseCase.ts index 65db290..a00e11c 100644 --- a/course-service/src/application/useCases/category/createCategoryUseCase.ts +++ b/course-service/src/application/useCases/category/createCategoryUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { CategoryEntity } from "../../../domain/entities/categoryEntity"; diff --git a/course-service/src/application/useCases/category/updateCategoryUseCase.ts b/course-service/src/application/useCases/category/updateCategoryUseCase.ts index 62067aa..e9c5cc7 100644 --- a/course-service/src/application/useCases/category/updateCategoryUseCase.ts +++ b/course-service/src/application/useCases/category/updateCategoryUseCase.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../domain/entities"; import { IDependencies } from "../../interfaces/IDependencies"; export const updateCategoryUseCase = (dependencies: IDependencies) => { diff --git a/course-service/src/application/useCases/course/PublishCoursesUseCase.ts b/course-service/src/application/useCases/course/PublishCoursesUseCase.ts index 9f04823..f9102d6 100644 --- a/course-service/src/application/useCases/course/PublishCoursesUseCase.ts +++ b/course-service/src/application/useCases/course/PublishCoursesUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const PublishCoursesUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/course/createCourseUseCase.ts b/course-service/src/application/useCases/course/createCourseUseCase.ts index 94e6ed7..531d166 100644 --- a/course-service/src/application/useCases/course/createCourseUseCase.ts +++ b/course-service/src/application/useCases/course/createCourseUseCase.ts @@ -1,5 +1,5 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export const createCourseUseCase = (dependencies: IDependencies) => { diff --git a/course-service/src/application/useCases/course/editCourseUseCase.ts b/course-service/src/application/useCases/course/editCourseUseCase.ts index 1cd70ac..a6eeee8 100644 --- a/course-service/src/application/useCases/course/editCourseUseCase.ts +++ b/course-service/src/application/useCases/course/editCourseUseCase.ts @@ -1,5 +1,5 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export const editCourseUseCase=(dependencies:IDependencies)=>{ const {repositories:{editCourse}} = dependencies; diff --git a/course-service/src/application/useCases/course/getAllCoursesUseCase.ts b/course-service/src/application/useCases/course/getAllCoursesUseCase.ts index f1557f4..09fc9b1 100644 --- a/course-service/src/application/useCases/course/getAllCoursesUseCase.ts +++ b/course-service/src/application/useCases/course/getAllCoursesUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getAllCoursesUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/course/getCourseUseCase.ts b/course-service/src/application/useCases/course/getCourseUseCase.ts index 88b7930..4a657df 100644 --- a/course-service/src/application/useCases/course/getCourseUseCase.ts +++ b/course-service/src/application/useCases/course/getCourseUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getCourseUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/course/getInstructorCourseUseCase.ts b/course-service/src/application/useCases/course/getInstructorCourseUseCase.ts index c1a2b44..9097465 100644 --- a/course-service/src/application/useCases/course/getInstructorCourseUseCase.ts +++ b/course-service/src/application/useCases/course/getInstructorCourseUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getInstructorCourseUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/course/getPublishedCoursesUseCase.ts b/course-service/src/application/useCases/course/getPublishedCoursesUseCase.ts index b4d9cd1..f4bdd7b 100644 --- a/course-service/src/application/useCases/course/getPublishedCoursesUseCase.ts +++ b/course-service/src/application/useCases/course/getPublishedCoursesUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getPublishedCoursesUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/course/updateCourseStatusUseCase.ts b/course-service/src/application/useCases/course/updateCourseStatusUseCase.ts index fe41545..a193a1a 100644 --- a/course-service/src/application/useCases/course/updateCourseStatusUseCase.ts +++ b/course-service/src/application/useCases/course/updateCourseStatusUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const updateCourseStatusUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/enrollment/adminDashboardUseCase.ts b/course-service/src/application/useCases/enrollment/adminDashboardUseCase.ts index b95eb80..40fd4cd 100644 --- a/course-service/src/application/useCases/enrollment/adminDashboardUseCase.ts +++ b/course-service/src/application/useCases/enrollment/adminDashboardUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const adminDashboardUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/application/useCases/enrollment/enrollmentProgressUseCase.ts b/course-service/src/application/useCases/enrollment/enrollmentProgressUseCase.ts index dad4bb3..e1c8e0b 100644 --- a/course-service/src/application/useCases/enrollment/enrollmentProgressUseCase.ts +++ b/course-service/src/application/useCases/enrollment/enrollmentProgressUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const enrollmentProgressUseCase=(dependencies:IDependencies)=>{ const {repositories:{enrollmentProgress}} = dependencies; diff --git a/course-service/src/application/useCases/enrollment/getEnrollmentByUserIdUseCase.ts b/course-service/src/application/useCases/enrollment/getEnrollmentByUserIdUseCase.ts index fc35e3a..dc162e9 100644 --- a/course-service/src/application/useCases/enrollment/getEnrollmentByUserIdUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getEnrollmentByUserIdUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getEnrollmentByUserIdUseCase=(dependencies:IDependencies)=>{ const {repositories:{getEnrollmentByUserId}} = dependencies; diff --git a/course-service/src/application/useCases/enrollment/getEnrollmentUseCase.ts b/course-service/src/application/useCases/enrollment/getEnrollmentUseCase.ts index d672eda..d60ff06 100644 --- a/course-service/src/application/useCases/enrollment/getEnrollmentUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getEnrollmentUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getEnrollmentUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/application/useCases/enrollment/getEnrollmentsForInstructorOverTimeUseCase.ts b/course-service/src/application/useCases/enrollment/getEnrollmentsForInstructorOverTimeUseCase.ts index b21bfc4..cb26817 100644 --- a/course-service/src/application/useCases/enrollment/getEnrollmentsForInstructorOverTimeUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getEnrollmentsForInstructorOverTimeUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getEnrollmentsForInstructorOverTimeUseCase=(dependencies:IDependencies)=>{ const {repositories:{getEnrollmentsForInstructorOverTime}} = dependencies; diff --git a/course-service/src/application/useCases/enrollment/getTopCourseUseCase.ts b/course-service/src/application/useCases/enrollment/getTopCourseUseCase.ts index 81b8620..48b5149 100644 --- a/course-service/src/application/useCases/enrollment/getTopCourseUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getTopCourseUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getTopCourseUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/application/useCases/enrollment/getTopCoursesForInstructorUseCase.ts b/course-service/src/application/useCases/enrollment/getTopCoursesForInstructorUseCase.ts index b1df44d..f044d3d 100644 --- a/course-service/src/application/useCases/enrollment/getTopCoursesForInstructorUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getTopCoursesForInstructorUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getTopCoursesForInstructorUseCase=(dependencies:IDependencies)=>{ const {repositories:{getTopCoursesForInstructor}} = dependencies; diff --git a/course-service/src/application/useCases/enrollment/getTotalCoursesForInstructorUseCase.ts b/course-service/src/application/useCases/enrollment/getTotalCoursesForInstructorUseCase.ts index d258b37..45a6c90 100644 --- a/course-service/src/application/useCases/enrollment/getTotalCoursesForInstructorUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getTotalCoursesForInstructorUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getTotalCoursesForInstructorUseCase=(dependencies:IDependencies)=>{ const {repositories:{getTotalCoursesForInstructor}} = dependencies; diff --git a/course-service/src/application/useCases/enrollment/getTotalStudentsForInstructorUseCase.ts b/course-service/src/application/useCases/enrollment/getTotalStudentsForInstructorUseCase.ts index 107b4e5..702c224 100644 --- a/course-service/src/application/useCases/enrollment/getTotalStudentsForInstructorUseCase.ts +++ b/course-service/src/application/useCases/enrollment/getTotalStudentsForInstructorUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getTotalStudentsForInstructorUseCase=(dependencies:IDependencies)=>{ const {repositories:{getTotalStudentsForInstructor}} = dependencies; diff --git a/course-service/src/application/useCases/enrollment/myStudentsUseCase.ts b/course-service/src/application/useCases/enrollment/myStudentsUseCase.ts index 16d7b22..4a9c994 100644 --- a/course-service/src/application/useCases/enrollment/myStudentsUseCase.ts +++ b/course-service/src/application/useCases/enrollment/myStudentsUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const myStudentsUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/application/useCases/enrollment/paymentListUseCase.ts b/course-service/src/application/useCases/enrollment/paymentListUseCase.ts index aa2eb90..70dfcf4 100644 --- a/course-service/src/application/useCases/enrollment/paymentListUseCase.ts +++ b/course-service/src/application/useCases/enrollment/paymentListUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const paymentListUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/application/useCases/enrollment/salesReportUseCase.ts b/course-service/src/application/useCases/enrollment/salesReportUseCase.ts index 484c01e..4d99a49 100644 --- a/course-service/src/application/useCases/enrollment/salesReportUseCase.ts +++ b/course-service/src/application/useCases/enrollment/salesReportUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const salesReportUseCase = (dependencies: IDependencies) => { const { diff --git a/course-service/src/application/useCases/exams/createExamUseCase.ts b/course-service/src/application/useCases/exams/createExamUseCase.ts index 614a498..8bd1d27 100644 --- a/course-service/src/application/useCases/exams/createExamUseCase.ts +++ b/course-service/src/application/useCases/exams/createExamUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const createExamUseCase=(dependencies:IDependencies)=>{ const {repositories:{createExam}} = dependencies; diff --git a/course-service/src/application/useCases/exams/getExamUseCase.ts b/course-service/src/application/useCases/exams/getExamUseCase.ts index 6c1146b..4bdcc02 100644 --- a/course-service/src/application/useCases/exams/getExamUseCase.ts +++ b/course-service/src/application/useCases/exams/getExamUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getExamUseCase=(dependencies:IDependencies)=>{ const {repositories:{getExam}} = dependencies; diff --git a/course-service/src/application/useCases/exams/submitExamUseCase.ts b/course-service/src/application/useCases/exams/submitExamUseCase.ts index 80159c3..ccf05b4 100644 --- a/course-service/src/application/useCases/exams/submitExamUseCase.ts +++ b/course-service/src/application/useCases/exams/submitExamUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const submitExamUseCase=(dependencies:IDependencies)=>{ const {repositories:{submitExam}} = dependencies; diff --git a/course-service/src/application/useCases/review/createReviewUseCase.ts b/course-service/src/application/useCases/review/createReviewUseCase.ts index 0a88bdc..16f260a 100644 --- a/course-service/src/application/useCases/review/createReviewUseCase.ts +++ b/course-service/src/application/useCases/review/createReviewUseCase.ts @@ -1,5 +1,5 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { IReview } from "@/domain/entities"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; +import { IReview } from "../../../domain/entities"; export const createReviewUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/application/useCases/review/getReviewUseCase.ts b/course-service/src/application/useCases/review/getReviewUseCase.ts index ee6e6d0..29b65c8 100644 --- a/course-service/src/application/useCases/review/getReviewUseCase.ts +++ b/course-service/src/application/useCases/review/getReviewUseCase.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getReviewUseCase = (dependencies : IDependencies)=>{ diff --git a/course-service/src/domain/useCases/category/ICreateCategoryUseCase.ts b/course-service/src/domain/useCases/category/ICreateCategoryUseCase.ts index bda57f8..1523f67 100644 --- a/course-service/src/domain/useCases/category/ICreateCategoryUseCase.ts +++ b/course-service/src/domain/useCases/category/ICreateCategoryUseCase.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../domain/entities/categoryEntity"; export interface ICreateCategoryUseCase { diff --git a/course-service/src/domain/useCases/category/IGetAllCategoriesUseCase.ts b/course-service/src/domain/useCases/category/IGetAllCategoriesUseCase.ts index e7ceb06..71d82bb 100644 --- a/course-service/src/domain/useCases/category/IGetAllCategoriesUseCase.ts +++ b/course-service/src/domain/useCases/category/IGetAllCategoriesUseCase.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../domain/entities/categoryEntity"; export interface IGetAllCategoriesUseCase { execute(filter: any, page: number, limit: number): Promise<{ result: CategoryEntity[]; totalAvailableCategories: number }>; diff --git a/course-service/src/domain/useCases/category/IGetAvailableCategoriesUseCase.ts b/course-service/src/domain/useCases/category/IGetAvailableCategoriesUseCase.ts index f1c48ae..150aafb 100644 --- a/course-service/src/domain/useCases/category/IGetAvailableCategoriesUseCase.ts +++ b/course-service/src/domain/useCases/category/IGetAvailableCategoriesUseCase.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../domain/entities/categoryEntity"; export interface IGetAvailableCategoriesUseCase { execute(): Promise; diff --git a/course-service/src/domain/useCases/category/IUpdateCategoryUseCase.ts b/course-service/src/domain/useCases/category/IUpdateCategoryUseCase.ts index be5688c..b7684d9 100644 --- a/course-service/src/domain/useCases/category/IUpdateCategoryUseCase.ts +++ b/course-service/src/domain/useCases/category/IUpdateCategoryUseCase.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../domain/entities/categoryEntity"; export interface IUpdateCategoryUseCase { execute(data: CategoryEntity): Promise; diff --git a/course-service/src/domain/useCases/course/ICreateCourseUseCase.ts b/course-service/src/domain/useCases/course/ICreateCourseUseCase.ts index 813ba74..13a8d20 100644 --- a/course-service/src/domain/useCases/course/ICreateCourseUseCase.ts +++ b/course-service/src/domain/useCases/course/ICreateCourseUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface ICreateCourseUseCase { diff --git a/course-service/src/domain/useCases/course/IEditCourseUseCase.ts b/course-service/src/domain/useCases/course/IEditCourseUseCase.ts index 38e7bfa..0b630b2 100644 --- a/course-service/src/domain/useCases/course/IEditCourseUseCase.ts +++ b/course-service/src/domain/useCases/course/IEditCourseUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IEditCourseUseCase { diff --git a/course-service/src/domain/useCases/course/IGetAllCoursesUseCase.ts b/course-service/src/domain/useCases/course/IGetAllCoursesUseCase.ts index ae0e879..b551dda 100644 --- a/course-service/src/domain/useCases/course/IGetAllCoursesUseCase.ts +++ b/course-service/src/domain/useCases/course/IGetAllCoursesUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IGetAllCoursesUseCase { diff --git a/course-service/src/domain/useCases/course/IGetCourseUseCase.ts b/course-service/src/domain/useCases/course/IGetCourseUseCase.ts index 9b1073f..c5f256d 100644 --- a/course-service/src/domain/useCases/course/IGetCourseUseCase.ts +++ b/course-service/src/domain/useCases/course/IGetCourseUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IGetCourseUseCase { diff --git a/course-service/src/domain/useCases/course/IGetInstructorCourseUseCase.ts b/course-service/src/domain/useCases/course/IGetInstructorCourseUseCase.ts index 4cde676..20edc10 100644 --- a/course-service/src/domain/useCases/course/IGetInstructorCourseUseCase.ts +++ b/course-service/src/domain/useCases/course/IGetInstructorCourseUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IGetInstructorCourseUseCase { diff --git a/course-service/src/domain/useCases/course/IGetPublishedCoursesUseCase.ts b/course-service/src/domain/useCases/course/IGetPublishedCoursesUseCase.ts index 94c51f5..04019cb 100644 --- a/course-service/src/domain/useCases/course/IGetPublishedCoursesUseCase.ts +++ b/course-service/src/domain/useCases/course/IGetPublishedCoursesUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IGetPublishedCoursesUseCase { execute( diff --git a/course-service/src/domain/useCases/course/IPublishCoursesUseCase.ts b/course-service/src/domain/useCases/course/IPublishCoursesUseCase.ts index 12b2888..f9fe8c4 100644 --- a/course-service/src/domain/useCases/course/IPublishCoursesUseCase.ts +++ b/course-service/src/domain/useCases/course/IPublishCoursesUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IPublishCoursesUseCase { diff --git a/course-service/src/domain/useCases/course/IUpdateCourseStatusUseCase.ts b/course-service/src/domain/useCases/course/IUpdateCourseStatusUseCase.ts index 47a21d6..cfe2cc8 100644 --- a/course-service/src/domain/useCases/course/IUpdateCourseStatusUseCase.ts +++ b/course-service/src/domain/useCases/course/IUpdateCourseStatusUseCase.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../domain/entities/CourseEntity"; export interface IUpdateCourseStatusUseCase { diff --git a/course-service/src/domain/useCases/enrollment/IEnrollmentProgressUseCase.ts b/course-service/src/domain/useCases/enrollment/IEnrollmentProgressUseCase.ts index 7ff53a9..4dd3dcd 100644 --- a/course-service/src/domain/useCases/enrollment/IEnrollmentProgressUseCase.ts +++ b/course-service/src/domain/useCases/enrollment/IEnrollmentProgressUseCase.ts @@ -1,4 +1,4 @@ -import { EnrollmentEntity } from "@/domain/entities" +import { EnrollmentEntity } from "../../../domain/entities" export interface IEnrollmentProgressUseCase{ execute(progressData:any):Promise diff --git a/course-service/src/domain/useCases/enrollment/IGetEnrollmentUseCase.ts b/course-service/src/domain/useCases/enrollment/IGetEnrollmentUseCase.ts index 6d63a03..16cb9a2 100644 --- a/course-service/src/domain/useCases/enrollment/IGetEnrollmentUseCase.ts +++ b/course-service/src/domain/useCases/enrollment/IGetEnrollmentUseCase.ts @@ -1,4 +1,4 @@ -import { EnrollmentEntity } from "@/domain/entities"; +import { EnrollmentEntity } from "../../../domain/entities"; export interface IGetEnrollmentUseCase{ execute(courseId:string,userId:string):Promise; diff --git a/course-service/src/domain/useCases/enrollment/IMyStudentsUseCase.ts b/course-service/src/domain/useCases/enrollment/IMyStudentsUseCase.ts index 50e5a28..593b9a5 100644 --- a/course-service/src/domain/useCases/enrollment/IMyStudentsUseCase.ts +++ b/course-service/src/domain/useCases/enrollment/IMyStudentsUseCase.ts @@ -1,4 +1,4 @@ -import { EnrollmentEntity } from "@/domain/entities"; +import { EnrollmentEntity } from "../../../domain/entities"; export interface IMyStudentsUseCase{ execute(id:string,filter: any, page: number, limit: number):Promise; diff --git a/course-service/src/domain/useCases/exams/ISubmitExamUseCase.ts b/course-service/src/domain/useCases/exams/ISubmitExamUseCase.ts index c431b35..f719dbe 100644 --- a/course-service/src/domain/useCases/exams/ISubmitExamUseCase.ts +++ b/course-service/src/domain/useCases/exams/ISubmitExamUseCase.ts @@ -1,4 +1,4 @@ -import { IExamResult } from "@/domain/entities"; +import { IExamResult } from "../../../domain/entities"; export interface ISubmitExamUseCase{ execute(userId:string,courseId: string,result:any):Promise diff --git a/course-service/src/domain/useCases/review/ICreateReviewUseCase.ts b/course-service/src/domain/useCases/review/ICreateReviewUseCase.ts index 655a777..f6702f1 100644 --- a/course-service/src/domain/useCases/review/ICreateReviewUseCase.ts +++ b/course-service/src/domain/useCases/review/ICreateReviewUseCase.ts @@ -1,4 +1,4 @@ -import { IReview } from "@/domain/entities"; +import { IReview } from "../../../domain/entities"; export interface ICreateReviewUseCase { execute(data: IReview): Promise; diff --git a/course-service/src/domain/useCases/review/IGetReviewUseCase.ts b/course-service/src/domain/useCases/review/IGetReviewUseCase.ts index 426010c..0b1bcc5 100644 --- a/course-service/src/domain/useCases/review/IGetReviewUseCase.ts +++ b/course-service/src/domain/useCases/review/IGetReviewUseCase.ts @@ -1,4 +1,4 @@ -import { IReview } from "@/domain/entities"; +import { IReview } from "../../../domain/entities"; export interface IGetReviewUseCase { execute(courseId:string): Promise; diff --git a/course-service/src/index.ts b/course-service/src/index.ts index f063cb6..0188825 100644 --- a/course-service/src/index.ts +++ b/course-service/src/index.ts @@ -1,6 +1,6 @@ -import database from "@/_boot/config"; -import server from "@/presentation" -import {runConsumer,stopConsumer} from "@/_boot/consumer" +import database from "./_boot/config"; +import server from "./presentation" +import {runConsumer,stopConsumer} from "./_boot/consumer" (async () => { try { diff --git a/course-service/src/infrastructure/database/mongoDB/models/category.ts b/course-service/src/infrastructure/database/mongoDB/models/category.ts index 6095884..828e902 100644 --- a/course-service/src/infrastructure/database/mongoDB/models/category.ts +++ b/course-service/src/infrastructure/database/mongoDB/models/category.ts @@ -1,5 +1,5 @@ import { Schema, model } from "mongoose"; -import {CategoryEntity} from "@/domain/entities/categoryEntity" +import {CategoryEntity} from "../../../../domain/entities/categoryEntity" const categorySchema= new Schema ({ title:{ diff --git a/course-service/src/infrastructure/database/mongoDB/models/course.ts b/course-service/src/infrastructure/database/mongoDB/models/course.ts index 0f8b966..a3af771 100644 --- a/course-service/src/infrastructure/database/mongoDB/models/course.ts +++ b/course-service/src/infrastructure/database/mongoDB/models/course.ts @@ -1,5 +1,5 @@ import { Schema, model, Types } from "mongoose"; -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../domain/entities/CourseEntity"; const subLessonSchema=new Schema({ diff --git a/course-service/src/infrastructure/database/mongoDB/models/enrollment.ts b/course-service/src/infrastructure/database/mongoDB/models/enrollment.ts index 45365ff..bfaaf33 100644 --- a/course-service/src/infrastructure/database/mongoDB/models/enrollment.ts +++ b/course-service/src/infrastructure/database/mongoDB/models/enrollment.ts @@ -1,4 +1,4 @@ -import { EnrollmentEntity } from "@/domain/entities"; +import { EnrollmentEntity } from "../../../../domain/entities"; import { Schema, model } from "mongoose"; diff --git a/course-service/src/infrastructure/database/mongoDB/models/examResult.ts b/course-service/src/infrastructure/database/mongoDB/models/examResult.ts index 9633bda..b26ad67 100644 --- a/course-service/src/infrastructure/database/mongoDB/models/examResult.ts +++ b/course-service/src/infrastructure/database/mongoDB/models/examResult.ts @@ -1,4 +1,4 @@ -import { IExamResult } from "@/domain/entities"; +import { IExamResult } from "../../../../domain/entities"; import { Schema, model } from "mongoose"; const examResultSchema = new Schema({ diff --git a/course-service/src/infrastructure/database/mongoDB/models/review.ts b/course-service/src/infrastructure/database/mongoDB/models/review.ts index 4470801..6ae6a40 100644 --- a/course-service/src/infrastructure/database/mongoDB/models/review.ts +++ b/course-service/src/infrastructure/database/mongoDB/models/review.ts @@ -1,4 +1,4 @@ -import { IReview } from "@/domain/entities/reviewEntity"; +import { IReview } from "../../../../domain/entities/reviewEntity"; import { Schema, model } from "mongoose"; const reviewSchema = new Schema( diff --git a/course-service/src/infrastructure/database/mongoDB/models/user.ts b/course-service/src/infrastructure/database/mongoDB/models/user.ts index 883cee9..d9baf17 100644 --- a/course-service/src/infrastructure/database/mongoDB/models/user.ts +++ b/course-service/src/infrastructure/database/mongoDB/models/user.ts @@ -1,5 +1,5 @@ import { Schema, model } from "mongoose"; -import { UserEntity } from "@/domain/entities"; +import { UserEntity } from "../../../../domain/entities"; const userSchema = new Schema({ firstName: { diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/category/createCategory.ts b/course-service/src/infrastructure/database/mongoDB/repositories/category/createCategory.ts index 26d0e67..65c2d59 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/category/createCategory.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/category/createCategory.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../../../domain/entities/categoryEntity"; import { Category } from "../../models/category"; import {ErrorResponse} from "@learnwise/common" diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/category/updateCategory.ts b/course-service/src/infrastructure/database/mongoDB/repositories/category/updateCategory.ts index ca487ef..2923e6f 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/category/updateCategory.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/category/updateCategory.ts @@ -1,4 +1,4 @@ -import { CategoryEntity } from "@/domain/entities/categoryEntity"; +import { CategoryEntity } from "../../../../../domain/entities/categoryEntity"; import { Category } from "../../models/category"; import {ErrorResponse} from "@learnwise/common" diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/courseRepository.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/courseRepository.ts index 1c32552..97d36ff 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/courseRepository.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/courseRepository.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { Course } from "../../models/course"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/createCourse.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/createCourse.ts index 5c38224..36dae43 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/createCourse.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/createCourse.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { Course } from "../../models/course"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/editCourse.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/editCourse.ts index b3099b5..3630dd7 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/editCourse.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/editCourse.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { Course } from "../../models/course"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/getCourse.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/getCourse.ts index d97aa39..1bffbca 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/getCourse.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/getCourse.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { Course } from "../../models/course"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/getInstructorCourse.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/getInstructorCourse.ts index 273bad9..116b8fd 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/getInstructorCourse.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/getInstructorCourse.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { Course } from "../../models/course"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/getPublishedAndUnblocked.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/getPublishedAndUnblocked.ts index a6ca530..e850cd8 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/getPublishedAndUnblocked.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/getPublishedAndUnblocked.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { Course } from "../../models/course"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse.ts index 470929c..6d68998 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { ErrorResponse } from "@learnwise/common"; import { Course } from "../../models/course"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse/publishCourse.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/publishCourse/publishCourse.ts deleted file mode 100644 index e69de29..0000000 diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/course/updateCourseStatus.ts b/course-service/src/infrastructure/database/mongoDB/repositories/course/updateCourseStatus.ts index 85f4da1..55627ea 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/course/updateCourseStatus.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/course/updateCourseStatus.ts @@ -1,4 +1,4 @@ -import { CourseEntity } from "@/domain/entities/CourseEntity"; +import { CourseEntity } from "../../../../../domain/entities/CourseEntity"; import { ErrorResponse } from "@learnwise/common"; import { Course } from "../../models/course"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/adminDashboard.ts b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/adminDashboard.ts index a1efcfb..5e26118 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/adminDashboard.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/adminDashboard.ts @@ -1,4 +1,4 @@ -import { Enrollment } from "@/infrastructure/database/mongoDB/models/enrollment"; +import { Enrollment } from "../../models/enrollment"; export const adminDashboard = async () => { try { diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/createEnrollment.ts b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/createEnrollment.ts index 15db407..054e566 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/createEnrollment.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/createEnrollment.ts @@ -1,5 +1,5 @@ -import { Enrollment } from "@/infrastructure/database/mongoDB/models/enrollment"; -import { EnrollmentEntity } from "@/domain/entities"; +import { Enrollment } from "../../models/enrollment"; +import { EnrollmentEntity } from "../../../../../domain/entities"; export const createEnrollment = async ( data: EnrollmentEntity diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/enrollmentProgress.ts b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/enrollmentProgress.ts index e24c9ac..ed7c24b 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/enrollmentProgress.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/enrollmentProgress.ts @@ -1,4 +1,4 @@ -import { EnrollmentEntity } from "@/domain/entities"; +import { EnrollmentEntity } from "../../../../../domain/entities"; import { Enrollment } from "../../models/enrollment"; import { ErrorResponse } from "@learnwise/common"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollment.ts b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollment.ts index 935fe3f..090583b 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollment.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollment.ts @@ -1,5 +1,5 @@ -import { Enrollment } from "@/infrastructure/database/mongoDB/models/enrollment"; -import { EnrollmentEntity } from "@/domain/entities"; +import { Enrollment } from "../../models/enrollment"; +import { EnrollmentEntity } from "../../../../../domain/entities"; export const getEnrollment=async(courseId:string,userId:string):Promise =>{ try { diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollmentByUserId.ts b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollmentByUserId.ts index 505dce3..6111025 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollmentByUserId.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/getEnrollmentByUserId.ts @@ -1,5 +1,5 @@ -import { Enrollment } from "@/infrastructure/database/mongoDB/models/enrollment"; -import { EnrollmentEntity } from "@/domain/entities"; +import { Enrollment } from "../../models/enrollment"; +import { EnrollmentEntity } from "../../../../../domain/entities"; export const getEnrollmentByUserId = async ( userId: string diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/myStudents.ts b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/myStudents.ts index ac412c7..b7c7d4d 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/myStudents.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/enrollment/myStudents.ts @@ -1,5 +1,5 @@ -import { Enrollment } from "@/infrastructure/database/mongoDB/models/enrollment"; -import { EnrollmentEntity } from "@/domain/entities"; +import { Enrollment } from "../../models/enrollment"; +import { EnrollmentEntity } from "../../../../../domain/entities"; import mongoose from "mongoose"; export const myStudents = async ( diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/exams/submitExam.ts b/course-service/src/infrastructure/database/mongoDB/repositories/exams/submitExam.ts index 427003b..a64bd5a 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/exams/submitExam.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/exams/submitExam.ts @@ -1,4 +1,4 @@ -import { IExamResult } from "@/domain/entities"; +import { IExamResult } from "../../../../../domain/entities"; import { Exam } from "../../models/exams"; import { ExamResult } from "../../models/examResult"; diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/review/createReview.ts b/course-service/src/infrastructure/database/mongoDB/repositories/review/createReview.ts index 704b42d..2a78ef9 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/review/createReview.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/review/createReview.ts @@ -1,4 +1,4 @@ -import { IReview } from "@/domain/entities/reviewEntity"; +import { IReview } from "../../../../../domain/entities/reviewEntity"; import { Review } from "../../models/review"; export const createReview = async ( diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/review/getReview.ts b/course-service/src/infrastructure/database/mongoDB/repositories/review/getReview.ts index e2b0496..8ce8146 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/review/getReview.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/review/getReview.ts @@ -1,4 +1,4 @@ -import { IReview } from "@/domain/entities/reviewEntity"; +import { IReview } from "../../../../../domain/entities/reviewEntity"; import { Review } from "../../models/review"; export const getReview = async ( diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts b/course-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts index 6cdfddf..d902c20 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/user/createUser.ts @@ -1,6 +1,6 @@ import { ErrorResponse } from "@learnwise/common"; import { User } from "../../models/user"; -import { UserEntity } from "@/domain/entities"; +import { UserEntity } from "../../../../../domain/entities"; export const createUser = async ( data: UserEntity diff --git a/course-service/src/infrastructure/database/mongoDB/repositories/user/findUserById.ts b/course-service/src/infrastructure/database/mongoDB/repositories/user/findUserById.ts index 7486197..afef80e 100644 --- a/course-service/src/infrastructure/database/mongoDB/repositories/user/findUserById.ts +++ b/course-service/src/infrastructure/database/mongoDB/repositories/user/findUserById.ts @@ -1,4 +1,4 @@ -import { UserEntity } from "@/domain/entities/userEntity"; +import { UserEntity } from "../../../../../domain/entities/userEntity"; import { User } from "../../models/user"; diff --git a/course-service/src/infrastructure/kafka/consumers/coursePaymentSuccessConsumer.ts b/course-service/src/infrastructure/kafka/consumers/coursePaymentSuccessConsumer.ts index a01f47f..5647d0e 100644 --- a/course-service/src/infrastructure/kafka/consumers/coursePaymentSuccessConsumer.ts +++ b/course-service/src/infrastructure/kafka/consumers/coursePaymentSuccessConsumer.ts @@ -1,10 +1,10 @@ -import { EnrollmentEntity, UserEntity } from "@/domain/entities"; -import { Course } from "@/infrastructure/database/mongoDB/models/course"; -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { EnrollmentEntity, UserEntity } from "../../../domain/entities"; +import { Course } from "../../database/mongoDB/models/course"; +import { User } from "../../database/mongoDB/models/user"; import { createEnrollment, getEnrollmentByUserId -} from "@/infrastructure/database/mongoDB/repositories"; +} from "../../../infrastructure/database/mongoDB/repositories"; import { Schema, Document } from "mongoose"; diff --git a/course-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts b/course-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts index 682d61f..314f2b1 100644 --- a/course-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts +++ b/course-service/src/infrastructure/kafka/consumers/handleUserStatusChange.ts @@ -1,4 +1,4 @@ -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { User } from "../../database/mongoDB/models/user"; export async function userBlockStatusChanged(data: { id: string; diff --git a/course-service/src/infrastructure/kafka/consumers/subscriptionConsumer.ts b/course-service/src/infrastructure/kafka/consumers/subscriptionConsumer.ts index ab34736..3a87a19 100644 --- a/course-service/src/infrastructure/kafka/consumers/subscriptionConsumer.ts +++ b/course-service/src/infrastructure/kafka/consumers/subscriptionConsumer.ts @@ -1,4 +1,4 @@ -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { User } from "../../database/mongoDB/models/user"; export const subscriptionConsumer = async (data: { instructorId: string; amount: number }) => { diff --git a/course-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts b/course-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts index cc2ea0b..46cf8a3 100644 --- a/course-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts +++ b/course-service/src/infrastructure/kafka/consumers/updateUserProfileConsumer.ts @@ -1,5 +1,5 @@ -import { UserEntity } from "@/domain/entities"; -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { UserEntity } from "../../../domain/entities"; +import { User } from "../../database/mongoDB/models/user"; export async function updateUserProfileConsumer(data: { kafkaMessage: { email: string, updatedUserData: UserEntity }}): Promise{ try { diff --git a/course-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts b/course-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts index 7b095df..0249591 100644 --- a/course-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts +++ b/course-service/src/infrastructure/kafka/consumers/updateUserRoleConsumer.ts @@ -1,4 +1,4 @@ -import { User } from "@/infrastructure/database/mongoDB/models/user"; +import { User } from "../../database/mongoDB/models/user"; export async function updateUserRoleConsumer(data: { email: string; diff --git a/course-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts b/course-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts index 2b66c11..af51a2c 100644 --- a/course-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts +++ b/course-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts @@ -1,5 +1,5 @@ -import { UserEntity } from "@/domain/entities"; -import { createUser } from "@/infrastructure/database/mongoDB/repositories/user/createUser"; +import { UserEntity } from "../../../domain/entities"; +import { createUser } from "../../database/mongoDB/repositories/user/createUser"; export default async (data: UserEntity) => { try { diff --git a/course-service/src/infrastructure/routes/index.ts b/course-service/src/infrastructure/routes/index.ts index d4687b3..4f6e59f 100644 --- a/course-service/src/infrastructure/routes/index.ts +++ b/course-service/src/infrastructure/routes/index.ts @@ -1,7 +1,7 @@ -import { jwtMiddleware } from "@/_lib/common"; -import { verifyAdmin, verifyInstructor } from "@/_lib/common/middlewares"; -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { controllers } from "@/presentation/controllers"; +import { jwtMiddleware } from "../../_lib/common"; +import { verifyAdmin, verifyInstructor } from "../../_lib/common/middlewares"; +import { IDependencies } from "../../application/interfaces/IDependencies"; +import { controllers } from "../../presentation/controllers"; import { Router } from "express"; export const routes = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/category/createCategoryController.ts b/course-service/src/presentation/controllers/category/createCategoryController.ts index b45d7aa..25b31f9 100644 --- a/course-service/src/presentation/controllers/category/createCategoryController.ts +++ b/course-service/src/presentation/controllers/category/createCategoryController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { Request, Response, NextFunction } from "express"; export const createCategoryController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/category/getAllCategoriesController.ts b/course-service/src/presentation/controllers/category/getAllCategoriesController.ts index 12018ed..9e41247 100644 --- a/course-service/src/presentation/controllers/category/getAllCategoriesController.ts +++ b/course-service/src/presentation/controllers/category/getAllCategoriesController.ts @@ -1,6 +1,4 @@ - - -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { Request, Response, NextFunction } from "express"; export const getAllCategoriesController = (dependencies: IDependencies) => { @@ -11,7 +9,7 @@ export const getAllCategoriesController = (dependencies: IDependencies) => { return async (req: Request, res: Response, next: NextFunction) => { try { const { status, search, page = 1, limit = 10 } = req.query; - let filter:any = {}; + let filter: any = {}; if (status) { if (status === "active") { filter.isBlocked = false; @@ -22,7 +20,12 @@ export const getAllCategoriesController = (dependencies: IDependencies) => { if (search) { filter.title = { $regex: new RegExp(search as string, "i") }; } - const { result: categories, totalAvailableCategories } = await getAllCategoriesUseCase(dependencies).execute(filter, Number(page), Number(limit)); + const { result: categories, totalAvailableCategories } = + await getAllCategoriesUseCase(dependencies).execute( + filter, + Number(page), + Number(limit) + ); res.status(200).json({ categories, totalAvailableCategories }); } catch (error) { diff --git a/course-service/src/presentation/controllers/category/getAvailableCategoriesController.ts b/course-service/src/presentation/controllers/category/getAvailableCategoriesController.ts index f19af18..144f7c7 100644 --- a/course-service/src/presentation/controllers/category/getAvailableCategoriesController.ts +++ b/course-service/src/presentation/controllers/category/getAvailableCategoriesController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { Request, Response, NextFunction } from "express"; export const getAvailableCategoriesController = ( diff --git a/course-service/src/presentation/controllers/category/updateCategoryController.ts b/course-service/src/presentation/controllers/category/updateCategoryController.ts index 0ee79f9..9d9e60b 100644 --- a/course-service/src/presentation/controllers/category/updateCategoryController.ts +++ b/course-service/src/presentation/controllers/category/updateCategoryController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { Request, Response, NextFunction } from "express"; export const updateCategoryController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/course/courseManagementController.ts b/course-service/src/presentation/controllers/course/courseManagementController.ts index 83c2050..49fb8b9 100644 --- a/course-service/src/presentation/controllers/course/courseManagementController.ts +++ b/course-service/src/presentation/controllers/course/courseManagementController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; export const courseManagementController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/course/createCourseController.ts b/course-service/src/presentation/controllers/course/createCourseController.ts index 98f5cb1..af0102e 100644 --- a/course-service/src/presentation/controllers/course/createCourseController.ts +++ b/course-service/src/presentation/controllers/course/createCourseController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const createCourseController =(dependencies: IDependencies)=>{ diff --git a/course-service/src/presentation/controllers/course/createEndpointUrl.ts b/course-service/src/presentation/controllers/course/createEndpointUrl.ts index 915f834..b482c0a 100644 --- a/course-service/src/presentation/controllers/course/createEndpointUrl.ts +++ b/course-service/src/presentation/controllers/course/createEndpointUrl.ts @@ -1,6 +1,6 @@ import { Request, Response, NextFunction } from "express"; import Mux from '@mux/mux-node' -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; const mux = new Mux({ tokenId:process.env.MUX_TOKEN_ID, diff --git a/course-service/src/presentation/controllers/course/editCourseController.ts b/course-service/src/presentation/controllers/course/editCourseController.ts index 6e15982..a3a12a9 100644 --- a/course-service/src/presentation/controllers/course/editCourseController.ts +++ b/course-service/src/presentation/controllers/course/editCourseController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; export const editCourseController =(dependencies:IDependencies)=>{ diff --git a/course-service/src/presentation/controllers/course/getAllCoursesController.ts b/course-service/src/presentation/controllers/course/getAllCoursesController.ts index a498651..81e7fd9 100644 --- a/course-service/src/presentation/controllers/course/getAllCoursesController.ts +++ b/course-service/src/presentation/controllers/course/getAllCoursesController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getAllCoursesController = (dependencies: IDependencies) => { const { diff --git a/course-service/src/presentation/controllers/course/getCourseController.ts b/course-service/src/presentation/controllers/course/getCourseController.ts index 763fd9d..f772de4 100644 --- a/course-service/src/presentation/controllers/course/getCourseController.ts +++ b/course-service/src/presentation/controllers/course/getCourseController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import mongoose from "mongoose"; export const getCourseController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/course/getPublishedCoursesController.ts b/course-service/src/presentation/controllers/course/getPublishedCoursesController.ts index 73c70ff..c201892 100644 --- a/course-service/src/presentation/controllers/course/getPublishedCoursesController.ts +++ b/course-service/src/presentation/controllers/course/getPublishedCoursesController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; export const getPublishedCoursesController = (dependencies: IDependencies) => { return async (req: Request, res: Response, next: NextFunction) => { diff --git a/course-service/src/presentation/controllers/course/instructorCourseController.ts b/course-service/src/presentation/controllers/course/instructorCourseController.ts index 554de37..67e9991 100644 --- a/course-service/src/presentation/controllers/course/instructorCourseController.ts +++ b/course-service/src/presentation/controllers/course/instructorCourseController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import mongoose from "mongoose"; export const instructorCourseController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/course/updateCourseController.ts b/course-service/src/presentation/controllers/course/updateCourseController.ts index bc1e13e..3ca4fc9 100644 --- a/course-service/src/presentation/controllers/course/updateCourseController.ts +++ b/course-service/src/presentation/controllers/course/updateCourseController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import mongoose from "mongoose"; export const updateCourseController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/course/updateCourseStatusController.ts b/course-service/src/presentation/controllers/course/updateCourseStatusController.ts index 76e6472..4cc470b 100644 --- a/course-service/src/presentation/controllers/course/updateCourseStatusController.ts +++ b/course-service/src/presentation/controllers/course/updateCourseStatusController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import mongoose from "mongoose"; export const updateCourseStatusController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/enrollment/adminDashboardController.ts b/course-service/src/presentation/controllers/enrollment/adminDashboardController.ts index cc98ae3..26dd341 100644 --- a/course-service/src/presentation/controllers/enrollment/adminDashboardController.ts +++ b/course-service/src/presentation/controllers/enrollment/adminDashboardController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/controllers/enrollment/adminPaymentController.ts b/course-service/src/presentation/controllers/enrollment/adminPaymentController.ts index 0c12434..490a7f1 100644 --- a/course-service/src/presentation/controllers/enrollment/adminPaymentController.ts +++ b/course-service/src/presentation/controllers/enrollment/adminPaymentController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/controllers/enrollment/enrollmentProgressController.ts b/course-service/src/presentation/controllers/enrollment/enrollmentProgressController.ts index 44f7088..6263325 100644 --- a/course-service/src/presentation/controllers/enrollment/enrollmentProgressController.ts +++ b/course-service/src/presentation/controllers/enrollment/enrollmentProgressController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; export const enrollmentProgressController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/enrollment/getEnrolledController.ts b/course-service/src/presentation/controllers/enrollment/getEnrolledController.ts index 73a756b..037d550 100644 --- a/course-service/src/presentation/controllers/enrollment/getEnrolledController.ts +++ b/course-service/src/presentation/controllers/enrollment/getEnrolledController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/controllers/enrollment/getEnrollmentByUserIdController.ts b/course-service/src/presentation/controllers/enrollment/getEnrollmentByUserIdController.ts index 9e97a81..e24f98b 100644 --- a/course-service/src/presentation/controllers/enrollment/getEnrollmentByUserIdController.ts +++ b/course-service/src/presentation/controllers/enrollment/getEnrollmentByUserIdController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/controllers/enrollment/instructorDashboardController.ts b/course-service/src/presentation/controllers/enrollment/instructorDashboardController.ts index 01fad74..86de05d 100644 --- a/course-service/src/presentation/controllers/enrollment/instructorDashboardController.ts +++ b/course-service/src/presentation/controllers/enrollment/instructorDashboardController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; export const instructorDashboardController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/enrollment/myStudentController.ts b/course-service/src/presentation/controllers/enrollment/myStudentController.ts index 61dfbee..5d11e3c 100644 --- a/course-service/src/presentation/controllers/enrollment/myStudentController.ts +++ b/course-service/src/presentation/controllers/enrollment/myStudentController.ts @@ -1,5 +1,5 @@ import { Request, Response, NextFunction } from "express"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; export const myStudentsController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/enrollment/salesReportController.ts b/course-service/src/presentation/controllers/enrollment/salesReportController.ts index 2d687d6..fe75079 100644 --- a/course-service/src/presentation/controllers/enrollment/salesReportController.ts +++ b/course-service/src/presentation/controllers/enrollment/salesReportController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/controllers/exam/createExamController.ts b/course-service/src/presentation/controllers/exam/createExamController.ts index 49e7685..f4d68aa 100644 --- a/course-service/src/presentation/controllers/exam/createExamController.ts +++ b/course-service/src/presentation/controllers/exam/createExamController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { NextFunction, Request, Response } from "express"; export const createExamController = (dependencies: IDependencies) => { diff --git a/course-service/src/presentation/controllers/exam/getExamController.ts b/course-service/src/presentation/controllers/exam/getExamController.ts index a8c1461..2927275 100644 --- a/course-service/src/presentation/controllers/exam/getExamController.ts +++ b/course-service/src/presentation/controllers/exam/getExamController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { NextFunction, Request, Response } from "express"; diff --git a/course-service/src/presentation/controllers/exam/submitExamController.ts b/course-service/src/presentation/controllers/exam/submitExamController.ts index c8eabef..e632a70 100644 --- a/course-service/src/presentation/controllers/exam/submitExamController.ts +++ b/course-service/src/presentation/controllers/exam/submitExamController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { NextFunction, Request, Response } from "express"; diff --git a/course-service/src/presentation/controllers/index.ts b/course-service/src/presentation/controllers/index.ts index 89ecd2e..de3ee23 100644 --- a/course-service/src/presentation/controllers/index.ts +++ b/course-service/src/presentation/controllers/index.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; //category import { @@ -6,7 +6,7 @@ import { createCategoryController, getAllCategoriesController, getAvailableCategoriesController, -} from "@/presentation/controllers/category"; +} from "../../presentation/controllers/category"; //course import { @@ -21,7 +21,7 @@ import { updateCourseStatusController, instructorCourseController, editCourseController, -} from "@/presentation/controllers/course"; +} from "../../presentation/controllers/course"; //enrollment import { @@ -33,15 +33,15 @@ import { adminPaymentController, enrollmentProgressController, getEnrollmentByUserIdController -} from "@/presentation/controllers/enrollment"; +} from "../../presentation/controllers/enrollment"; //review import { createReviewController, getReviewsController, -} from "@/presentation/controllers/reviews"; +} from "../../presentation/controllers/reviews"; -import {createExamController, getExamController,submitExamController} from "@/presentation/controllers/exam"; +import {createExamController, getExamController,submitExamController} from "../../presentation/controllers/exam"; export const controllers = (dependencies: IDependencies) => { return { diff --git a/course-service/src/presentation/controllers/reviews/createReviewController.ts b/course-service/src/presentation/controllers/reviews/createReviewController.ts index af8a7fb..b81b9be 100644 --- a/course-service/src/presentation/controllers/reviews/createReviewController.ts +++ b/course-service/src/presentation/controllers/reviews/createReviewController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/controllers/reviews/getReviewsController.ts b/course-service/src/presentation/controllers/reviews/getReviewsController.ts index 6674cbf..29e57fb 100644 --- a/course-service/src/presentation/controllers/reviews/getReviewsController.ts +++ b/course-service/src/presentation/controllers/reviews/getReviewsController.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { Request, Response, NextFunction } from "express"; diff --git a/course-service/src/presentation/index.ts b/course-service/src/presentation/index.ts index 16b60fc..11322b9 100644 --- a/course-service/src/presentation/index.ts +++ b/course-service/src/presentation/index.ts @@ -3,8 +3,8 @@ import dotenv from "dotenv"; import cookieParser from "cookie-parser"; dotenv.config(); import {errorHandler} from "@learnwise/common" -import {routes} from "@/infrastructure/routes" -import { dependencies } from "@/_boot/dependencies"; +import {routes} from "../infrastructure/routes" +import { dependencies } from "../_boot/dependencies"; import mongoSanitize from "express-mongo-sanitize" import helmet from "helmet"; import morgan from "morgan"; diff --git a/notification-service/src/__boot/consumer.ts b/notification-service/src/__boot/consumer.ts index 2cb0651..805df0f 100644 --- a/notification-service/src/__boot/consumer.ts +++ b/notification-service/src/__boot/consumer.ts @@ -1,5 +1,5 @@ -import { consumer } from "@/infrastructure/kafka"; -import { INotificationSubscriber, createSubscriber } from "@/infrastructure/kafka"; +import { consumer } from "../infrastructure/kafka"; +import { INotificationSubscriber, createSubscriber } from "../infrastructure/kafka"; export const runConsumer = async () => { try { diff --git a/notification-service/src/__boot/dependencies.ts b/notification-service/src/__boot/dependencies.ts index 32d9544..1661989 100644 --- a/notification-service/src/__boot/dependencies.ts +++ b/notification-service/src/__boot/dependencies.ts @@ -1,3 +1,3 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../application/interfaces/IDependencies"; export const dependencies: IDependencies = {}; \ No newline at end of file diff --git a/notification-service/src/index.ts b/notification-service/src/index.ts index daf359b..dafaa7f 100644 --- a/notification-service/src/index.ts +++ b/notification-service/src/index.ts @@ -1,5 +1,5 @@ import server from "./presentation/server" -import {runConsumer,stopConsumer} from "@/__boot/consumer" +import {runConsumer,stopConsumer} from "./__boot/consumer" (async () => { diff --git a/notification-service/src/infrastructure/kafka/consumers/instructorEmailconfirmation.ts b/notification-service/src/infrastructure/kafka/consumers/instructorEmailconfirmation.ts index 6aaa676..d5bc4fe 100644 --- a/notification-service/src/infrastructure/kafka/consumers/instructorEmailconfirmation.ts +++ b/notification-service/src/infrastructure/kafka/consumers/instructorEmailconfirmation.ts @@ -1,6 +1,5 @@ -import {instructorNotification} from "@/infrastructure/services/instructorNotification" +import {instructorNotification} from "../../../infrastructure/services/instructorNotification" export default async (data: { email: string}) => { - console.log("🚀 ~ file: instructorEmailconfirmation.ts:2 ~ email:", data.email) await instructorNotification(data.email) } \ No newline at end of file diff --git a/notification-service/src/infrastructure/kafka/consumers/requestForgotPasswordConsumer.ts b/notification-service/src/infrastructure/kafka/consumers/requestForgotPasswordConsumer.ts index 3bdc210..9e52756 100644 --- a/notification-service/src/infrastructure/kafka/consumers/requestForgotPasswordConsumer.ts +++ b/notification-service/src/infrastructure/kafka/consumers/requestForgotPasswordConsumer.ts @@ -1,11 +1,8 @@ -import { sendChangePasswordMail } from "@/infrastructure//services/sendChangePasswordMail"; +import { sendChangePasswordMail } from "../../../infrastructure//services/sendChangePasswordMail"; export default async (data: { email: string; token: string }) => { try { await sendChangePasswordMail(data.email, data.token); - console.log("@@@@@@@"); - console.log("request-password-changed-consumed mail send"); - console.log("@@@@@@@"); } catch (error: any) { console.log( "request-password-changed-consumed mail send error: ", diff --git a/notification-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts b/notification-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts index f65bf79..3849c9d 100644 --- a/notification-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts +++ b/notification-service/src/infrastructure/kafka/consumers/userCreatedConsumer.ts @@ -1,4 +1,4 @@ -import { sendVerificationMail } from "@/infrastructure/services"; +import { sendVerificationMail } from "../../../infrastructure/services"; export default async ( data:string @@ -8,10 +8,6 @@ export default async ( await sendVerificationMail(data); - console.log("=========="); - console.log("user-created-consumed mail send"); - console.log("=========="); - } catch (error: any) { console.log("user-created-consumed mail send error: ", error?.message); } diff --git a/notification-service/src/infrastructure/routes/index.ts b/notification-service/src/infrastructure/routes/index.ts index af13fb8..02552a1 100644 --- a/notification-service/src/infrastructure/routes/index.ts +++ b/notification-service/src/infrastructure/routes/index.ts @@ -1,7 +1,7 @@ -import { controllers } from "@/presentation/controllers"; +import { controllers } from "../../presentation/controllers"; import { Router } from "express"; -import { jwtMiddleware } from "@/_lib/common"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { jwtMiddleware } from "../../_lib/common"; +import { IDependencies } from "../../application/interfaces/IDependencies"; export const notificationRoutes = (dependencies: IDependencies) => { diff --git a/notification-service/src/infrastructure/services/index.ts b/notification-service/src/infrastructure/services/index.ts index 6f92cae..fac9230 100644 --- a/notification-service/src/infrastructure/services/index.ts +++ b/notification-service/src/infrastructure/services/index.ts @@ -1,6 +1,6 @@ -import { generateVerificationOTP } from "@/_lib/otp"; -import {sendOTPMail} from "@/_lib/nodemailer" -import { sendVerifyMailProducer } from "@/infrastructure/kafka/producers"; +import { generateVerificationOTP } from "../../_lib/otp"; +import {sendOTPMail} from "../../_lib/nodemailer" +import { sendVerifyMailProducer } from "../../infrastructure/kafka/producers"; export const sendVerificationMail = async (email: string) => { try { diff --git a/notification-service/src/infrastructure/services/instructorNotification.ts b/notification-service/src/infrastructure/services/instructorNotification.ts index 618142b..6bee92a 100644 --- a/notification-service/src/infrastructure/services/instructorNotification.ts +++ b/notification-service/src/infrastructure/services/instructorNotification.ts @@ -1,4 +1,4 @@ -import {generateInstructorConfirmationMail} from "@/_lib/nodemailer" +import {generateInstructorConfirmationMail} from "../../_lib/nodemailer" export const instructorNotification = async ( email: string, diff --git a/notification-service/src/infrastructure/services/sendChangePasswordMail.ts b/notification-service/src/infrastructure/services/sendChangePasswordMail.ts index c267c1b..ee2e7d9 100644 --- a/notification-service/src/infrastructure/services/sendChangePasswordMail.ts +++ b/notification-service/src/infrastructure/services/sendChangePasswordMail.ts @@ -1,4 +1,4 @@ -import {generateForgotPasswordMail} from "@/_lib/nodemailer" +import {generateForgotPasswordMail} from "../../_lib/nodemailer" export const sendChangePasswordMail = async ( email: string, diff --git a/notification-service/src/presentation/controllers/index.ts b/notification-service/src/presentation/controllers/index.ts index 64883e4..2417182 100644 --- a/notification-service/src/presentation/controllers/index.ts +++ b/notification-service/src/presentation/controllers/index.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "./../../application/interfaces/IDependencies"; import { sendVerificationMailController } from "./sendVerificationMail"; export const controllers = (dependencies: IDependencies) => { diff --git a/notification-service/src/presentation/controllers/sendVerificationMail.ts b/notification-service/src/presentation/controllers/sendVerificationMail.ts index 1c8d1a1..c280e0b 100644 --- a/notification-service/src/presentation/controllers/sendVerificationMail.ts +++ b/notification-service/src/presentation/controllers/sendVerificationMail.ts @@ -1,27 +1,23 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { sendVerificationMail } from "@/infrastructure/services"; +import { IDependencies } from "../../application/interfaces/IDependencies"; +import { sendVerificationMail } from "../../infrastructure/services"; import { Request, Response, NextFunction } from "express"; export const sendVerificationMailController = (dependencies: IDependencies) => { + return async (req: Request, res: Response, next: NextFunction) => { + try { + if (!req.user) { + throw new Error("Email is required!"); + } - return async (req: Request, res: Response, next: NextFunction) => { + await sendVerificationMail(req.user.email); - try { - - if(!req.user){ - throw new Error("Email is required!"); - } - - await sendVerificationMail(req.user.email); - - res.status(200).json({ - success: true, - data: {}, - message: "Email send!" - }); - - } catch (error) { - next(error); - } + res.status(200).json({ + success: true, + data: {}, + message: "Email send!", + }); + } catch (error) { + next(error); } -} \ No newline at end of file + }; +}; diff --git a/notification-service/src/presentation/server.ts b/notification-service/src/presentation/server.ts index 8bb8d8e..34729ba 100644 --- a/notification-service/src/presentation/server.ts +++ b/notification-service/src/presentation/server.ts @@ -1,8 +1,8 @@ import express, { Application, Request, Response } from "express"; import dotenv from "dotenv"; import cookieParser from "cookie-parser"; -import { notificationRoutes } from "@/infrastructure/routes"; -import { dependencies } from "@/__boot/dependencies"; +import { notificationRoutes } from "./../infrastructure/routes"; +import { dependencies } from "./../__boot/dependencies"; dotenv.config(); const app: Application = express(); diff --git a/payment-service/src/_boot/dependencies.ts b/payment-service/src/_boot/dependencies.ts index 73d2698..0490e01 100644 --- a/payment-service/src/_boot/dependencies.ts +++ b/payment-service/src/_boot/dependencies.ts @@ -1,6 +1,6 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../application/interfaces/IDependencies"; import * as useCases from '../application/useCases' -import * as repositories from '@/infrastructure/database/repositories' +import * as repositories from '../infrastructure/database/repositories' export const dependencies: IDependencies = { repositories, diff --git a/payment-service/src/application/interfaces/IRepositories.ts b/payment-service/src/application/interfaces/IRepositories.ts index 3faa09e..6be2c57 100644 --- a/payment-service/src/application/interfaces/IRepositories.ts +++ b/payment-service/src/application/interfaces/IRepositories.ts @@ -1,4 +1,4 @@ -import { IPaymentEntity, ISubscription } from "@/domain/entities"; +import { IPaymentEntity, ISubscription } from "../../domain/entities"; export interface IRepositories { savePayment: (data: any) => Promise diff --git a/payment-service/src/application/interfaces/IUseCases.ts b/payment-service/src/application/interfaces/IUseCases.ts index 1cf944f..aea8502 100644 --- a/payment-service/src/application/interfaces/IUseCases.ts +++ b/payment-service/src/application/interfaces/IUseCases.ts @@ -1,4 +1,4 @@ -import { ISavePaymentUseCase,IGetSubscriptionDataUseCase } from "@/domain/useCases"; +import { ISavePaymentUseCase,IGetSubscriptionDataUseCase } from "../../domain/useCases"; import { IDependencies } from "./IDependencies"; diff --git a/payment-service/src/domain/useCases/IGetSubscriptionDataUseCase.ts b/payment-service/src/domain/useCases/IGetSubscriptionDataUseCase.ts index 201a29e..327b55f 100644 --- a/payment-service/src/domain/useCases/IGetSubscriptionDataUseCase.ts +++ b/payment-service/src/domain/useCases/IGetSubscriptionDataUseCase.ts @@ -1,4 +1,4 @@ -import { ISubscription } from "@/domain/entities/index"; +import { ISubscription } from "../../domain/entities/index"; export interface IGetSubscriptionDataUseCase { execute(userId: string,instructorId:string): Promise diff --git a/payment-service/src/domain/useCases/ISavePaymentUseCase.ts b/payment-service/src/domain/useCases/ISavePaymentUseCase.ts index 93e28b0..aa02291 100644 --- a/payment-service/src/domain/useCases/ISavePaymentUseCase.ts +++ b/payment-service/src/domain/useCases/ISavePaymentUseCase.ts @@ -1,4 +1,4 @@ -import { IPaymentEntity } from "@/domain/entities/index"; +import { IPaymentEntity } from "../../domain/entities/index"; export interface ISavePaymentUseCase { execute(data: any): Promise diff --git a/payment-service/src/index.ts b/payment-service/src/index.ts index d7181d9..750aa37 100644 --- a/payment-service/src/index.ts +++ b/payment-service/src/index.ts @@ -1,5 +1,5 @@ -import server from "@/presentation/index" -import database from "@/_boot/config" +import server from "./presentation/index" +import database from "./_boot/config" (async()=>{ diff --git a/payment-service/src/infrastructure/database/repositories/getSubscriptionData.ts b/payment-service/src/infrastructure/database/repositories/getSubscriptionData.ts index 8561688..8ef92b7 100644 --- a/payment-service/src/infrastructure/database/repositories/getSubscriptionData.ts +++ b/payment-service/src/infrastructure/database/repositories/getSubscriptionData.ts @@ -1,4 +1,4 @@ -import { ISubscription } from "@/domain/entities"; +import { ISubscription } from "../../../domain/entities"; import { Subscription } from "../models/Subscription"; export const getSubscriptionData= async(userId:string,instructorId:string):Promise=>{ diff --git a/payment-service/src/infrastructure/database/repositories/savePayment.ts b/payment-service/src/infrastructure/database/repositories/savePayment.ts index e973e1b..fd1c34c 100644 --- a/payment-service/src/infrastructure/database/repositories/savePayment.ts +++ b/payment-service/src/infrastructure/database/repositories/savePayment.ts @@ -1,4 +1,4 @@ -import { IPaymentEntity } from "@/domain/entities"; +import { IPaymentEntity } from "../../../domain/entities"; import { Payment } from "../models/payment"; export const savePayment = async (data: any):Promise => { diff --git a/payment-service/src/infrastructure/routes/index.ts b/payment-service/src/infrastructure/routes/index.ts index c98eee5..08ea345 100644 --- a/payment-service/src/infrastructure/routes/index.ts +++ b/payment-service/src/infrastructure/routes/index.ts @@ -1,6 +1,6 @@ import express,{ Router } from "express"; -import { controllers } from "@/presentation/controllers"; -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { controllers } from "../../presentation/controllers"; +import { IDependencies } from "../../application/interfaces/IDependencies"; export const routes = (dependencies: IDependencies) => { diff --git a/payment-service/src/presentation/controllers/createCheckoutSession.ts b/payment-service/src/presentation/controllers/createCheckoutSession.ts index 77b82f3..147273a 100644 --- a/payment-service/src/presentation/controllers/createCheckoutSession.ts +++ b/payment-service/src/presentation/controllers/createCheckoutSession.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { NextFunction, Request, Response } from "express"; import stripe from "stripe"; diff --git a/payment-service/src/presentation/controllers/createSubscriptionSession.ts b/payment-service/src/presentation/controllers/createSubscriptionSession.ts index 29f1a78..cc97b42 100644 --- a/payment-service/src/presentation/controllers/createSubscriptionSession.ts +++ b/payment-service/src/presentation/controllers/createSubscriptionSession.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { NextFunction, Request, Response } from "express"; import Stripe from "stripe"; diff --git a/payment-service/src/presentation/controllers/getSubscriptionData.ts b/payment-service/src/presentation/controllers/getSubscriptionData.ts index b0041ae..b204e11 100644 --- a/payment-service/src/presentation/controllers/getSubscriptionData.ts +++ b/payment-service/src/presentation/controllers/getSubscriptionData.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { ErrorResponse } from "@learnwise/common"; import { NextFunction, Request, Response } from "express"; diff --git a/payment-service/src/presentation/controllers/index.ts b/payment-service/src/presentation/controllers/index.ts index 9d106b2..b89d5bd 100644 --- a/payment-service/src/presentation/controllers/index.ts +++ b/payment-service/src/presentation/controllers/index.ts @@ -1,4 +1,4 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; +import { IDependencies } from "../../application/interfaces/IDependencies"; import { createCheckoutSessionController } from "./createCheckoutSession"; import { savePaymentController } from "./savePayment"; import {getSubscriptionDataController } from "./getSubscriptionData" diff --git a/payment-service/src/presentation/controllers/savePayment.ts b/payment-service/src/presentation/controllers/savePayment.ts index 978cae8..7ce82d7 100644 --- a/payment-service/src/presentation/controllers/savePayment.ts +++ b/payment-service/src/presentation/controllers/savePayment.ts @@ -1,5 +1,5 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { coursePaymentSuccessProducer } from "@/infrastructure/messages/kafka/producer"; +import { IDependencies } from "../../application/interfaces/IDependencies"; +import { coursePaymentSuccessProducer } from "../../infrastructure/messages/kafka/producer"; import { ErrorResponse } from "@learnwise/common"; import { NextFunction, Request, Response } from "express"; diff --git a/payment-service/src/presentation/controllers/subscriptionWebhook.ts b/payment-service/src/presentation/controllers/subscriptionWebhook.ts index 6239002..2fe1525 100644 --- a/payment-service/src/presentation/controllers/subscriptionWebhook.ts +++ b/payment-service/src/presentation/controllers/subscriptionWebhook.ts @@ -1,9 +1,9 @@ -import { IDependencies } from "@/application/interfaces/IDependencies"; -import { Subscription } from "@/infrastructure/database/models/Subscription"; +import { IDependencies } from "../../application/interfaces/IDependencies"; +import { Subscription } from "../../infrastructure/database/models/Subscription"; import { NextFunction, Request, Response } from "express"; import Stripe from "stripe"; -import { createChatProducer} from "@/infrastructure/messages/kafka/producer" -import createSubscriptionProducer from "@/infrastructure/messages/kafka/producer/createSubscriptionProducer"; +import { createChatProducer} from "../../infrastructure/messages/kafka/producer" +import createSubscriptionProducer from "../../infrastructure/messages/kafka/producer/createSubscriptionProducer"; const stripe = new Stripe(process.env.STRIPE_SECRET as string, { apiVersion: "2024-04-10", diff --git a/payment-service/src/presentation/index.ts b/payment-service/src/presentation/index.ts index 2d4a11a..92e9f92 100644 --- a/payment-service/src/presentation/index.ts +++ b/payment-service/src/presentation/index.ts @@ -2,9 +2,9 @@ import express, { Application, Request, Response } from "express"; import dotenv from "dotenv"; import cookieParser from "cookie-parser" dotenv.config(); -import {routes} from "@/infrastructure/routes" +import {routes} from "./../infrastructure/routes" import {errorHandler} from '@learnwise/common' -import { dependencies } from "@/_boot/dependencies"; +import { dependencies } from "./../_boot/dependencies"; import morgan from "morgan";