Skip to content

Commit

Permalink
Fix: minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kmc7468 committed Nov 26, 2024
1 parent 84a732e commit e0e99c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/stores/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const roomSchema = new Schema<Room>({
}, // 참여 멤버 및 정산 여부
madeat: { type: Date, required: true }, // 생성 날짜
settlementTotal: { type: Number, default: 0, required: true },
maxPartLength: { type: Number, require: true, default: 4 },
maxPartLength: { type: Number, required: true, default: 4 },
});

export const roomModel = model("Room", roomSchema);
Expand Down
2 changes: 1 addition & 1 deletion src/services/chats.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { chatModel, userModel, roomModel } = require("@/modules/stores/mongo");
const { chatPopulateOption } = require("@/modules/populates/chats");
const { roomPopulateOption } = require("@/modules/populates/rooms");
const aws = require("@/modules/stores/aws").default;
const aws = require("@/modules/stores/aws");
const {
transformChatsForRoom,
emitChatEvent,
Expand Down
3 changes: 2 additions & 1 deletion src/types/mongo.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Document, Types } from "mongoose";
import type { Document, Types } from "mongoose";

export interface User extends Document {
/** 사용자의 실명. */
Expand All @@ -13,6 +13,7 @@ export interface User extends Document {
ongoingRoom?: Types.Array<Types.ObjectId>;
/** 사용자가 참여한 방 중 완료된 방의 배열. */
doneRoom?: Types.Array<Types.ObjectId>;
/** 계정 탈퇴 여부. */
withdraw: boolean;
/** 사용자의 전화번호. 2023 가을 이벤트부터 추가됨. */
phoneNumber?: string;
Expand Down

0 comments on commit e0e99c6

Please sign in to comment.