Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreationTime can't be set bruh #57

Open
carmi2214 opened this issue Aug 24, 2020 · 1 comment
Open

CreationTime can't be set bruh #57

carmi2214 opened this issue Aug 24, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@carmi2214
Copy link

when a user sets a new entity while setting it's creationTime field, it is not updating in DB

@carmi2214 carmi2214 added the bug Something isn't working label Aug 24, 2020
@carmi2214
Copy link
Author

carmi2214 commented Aug 24, 2020

I think this is the main problem

export abstract class CommonModel {

...

    @CreateDateColumn()
    protected creationTime: Date;

maybe if you set it as a regular column it will be updatable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant