From ff4763b3c4fb9a192c61d23bb3ffd3dce039ac0e Mon Sep 17 00:00:00 2001 From: NaayoungKwon Date: Wed, 23 Nov 2022 00:04:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20=EC=8B=9C=20=EC=9E=90=EB=8F=99=20updatedAt?= =?UTF-8?q?=20=EA=B0=B1=EC=8B=A0=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A4=EB=A7=88=20=EC=88=98=EC=A0=95=20#95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/dao/schemas/community.schema.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/dao/schemas/community.schema.ts b/server/dao/schemas/community.schema.ts index 5b3ee72c..e6fe5806 100644 --- a/server/dao/schemas/community.schema.ts +++ b/server/dao/schemas/community.schema.ts @@ -4,7 +4,7 @@ import { IsNotEmpty, IsString } from 'class-validator'; export type CommunityDocument = Community & Document; -@Schema() +@Schema({ timestamps: true }) export class Community { @Prop() @IsString() @@ -26,12 +26,6 @@ export class Community { @IsString() profileUrl: string; - @Prop({ default: new Date(), type: mongoose.Schema.Types.Date }) - createdAt: Date; - - @Prop({ default: new Date(), type: mongoose.Schema.Types.Date }) - updatedAt: Date; - @Prop({ type: mongoose.Schema.Types.Date }) deletedAt: Date;