Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

[Question] #404

Open
kuangshp opened this issue May 20, 2020 · 1 comment
Open

[Question] #404

kuangshp opened this issue May 20, 2020 · 1 comment
Labels

Comments

@kuangshp
Copy link

I want the updatedAt field to be updated to the current time by default every time the data is updated,But I couldn't figure out how to solve the problem

@IsDate()
  @prop({
    required: true,
    default: () => Date.now,
  })
  updatedAt!: Date;
@hasezoey
Copy link
Contributor

This repository is not maintained anymore, please look at the new typegoose repo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants