Skip to content

Commit

Permalink
Refactor: move types directory into src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kmc7468 committed Feb 3, 2024
1 parent 94daf70 commit 2a7c55f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/slackNotification.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/stores/aws.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/stores/mongo.ts
Original file line number Diff line number Diff line change
@@ -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<User>({
name: { type: String, required: true }, //실명
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 2a7c55f

Please sign in to comment.