diff --git a/src/modules/slackNotification.ts b/src/modules/slackNotification.ts index e03386a1..49a5d44e 100644 --- a/src/modules/slackNotification.ts +++ b/src/modules/slackNotification.ts @@ -1,7 +1,7 @@ import axios from "axios"; import { slackWebhookUrl as slackUrl } from "@/loadenv"; import logger from "@/modules/logger"; -import { type Report } from "@/../types/mongo"; +import { type Report } from "@/types/mongo"; export const notifyToReportChannel = (reportUser: string, report: Report) => { if (!slackUrl.report) return; diff --git a/src/modules/stores/aws.ts b/src/modules/stores/aws.ts index f46c9628..67dd9f10 100644 --- a/src/modules/stores/aws.ts +++ b/src/modules/stores/aws.ts @@ -1,7 +1,7 @@ import AWS from "aws-sdk"; import { aws as awsEnv } from "@/loadenv"; import logger from "@/modules/logger"; -import { type Report } from "@/../types/mongo"; // TODO: 이게맞나 +import { type Report } from "@/types/mongo"; AWS.config.update({ region: "ap-northeast-2", diff --git a/src/modules/stores/mongo.ts b/src/modules/stores/mongo.ts index ef608f99..bc248bce 100755 --- a/src/modules/stores/mongo.ts +++ b/src/modules/stores/mongo.ts @@ -1,6 +1,6 @@ import mongoose, { model, Schema, Types } from "mongoose"; import logger from "@/modules/logger"; -import type { User, Participant, DeviceToken, NotificationOption, TopicSubscription, Room, Location, Chat, Report, AdminIPWhitelist, AdminLog } from "@/../types/mongo"; // TODO: Am I right..? +import type { User, Participant, DeviceToken, NotificationOption, TopicSubscription, Room, Location, Chat, Report, AdminIPWhitelist, AdminLog } from "@/types/mongo"; const userSchema = new Schema({ name: { type: String, required: true }, //실명 diff --git a/types/index.d.ts b/src/types/index.d.ts similarity index 100% rename from types/index.d.ts rename to src/types/index.d.ts diff --git a/types/mongo.d.ts b/src/types/mongo.d.ts similarity index 100% rename from types/mongo.d.ts rename to src/types/mongo.d.ts