Skip to content

Commit

Permalink
Update createdAt with new Date
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-lok committed Feb 4, 2022
1 parent 96261c6 commit 28178da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 28178da

Please sign in to comment.