Skip to content

Commit

Permalink
refactor: 사용자 스키마 주석 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
NaayoungKwon committed Nov 25, 2022
1 parent 6b9a1fc commit 1fad7d7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions server/dao/schemas/user.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { IsIn, IsString } from 'class-validator';
import mongoose, { Document } from 'mongoose';
import { STATUS } from '@utils/def';

const channels = {
_id: { type: String },
lastRead: { type: Date, default: new Date() },
};

export type UserDocument = User & Document;

@Schema({ timestamps: true })
Expand Down Expand Up @@ -71,7 +66,7 @@ export class User {
of: new mongoose.Schema({ _id: { type: String }, channels: { type: Map, of: Date } }),
}),
)
communities; //: { type: Map<string, any> };
communities;
}

export const UserSchema = SchemaFactory.createForClass(User);

0 comments on commit 1fad7d7

Please sign in to comment.