diff --git a/server/src/models/User.ts b/server/src/models/User.ts index 7f6b49c..553e2d7 100644 --- a/server/src/models/User.ts +++ b/server/src/models/User.ts @@ -113,7 +113,7 @@ export class User { @Field(() => Date, { description: "When the user's account was created.", }) - @Prop() + @Prop({ default: new Date() }) createdAt?: Date; @Field(() => Date, {