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

When setting a Boolean type by default, it does not add #289

Open
viniciusbgr opened this issue Dec 31, 2021 · 1 comment
Open

When setting a Boolean type by default, it does not add #289

viniciusbgr opened this issue Dec 31, 2021 · 1 comment

Comments

@viniciusbgr
Copy link

exemple code:

@SubEntity()
class EditedEvent extends BaseEntity {
@column({
type: Boolean,
defaultValue: false, //does not work
})
enable: boolean;
}

@henriqueleite42
Copy link
Member

The lib can't handle defaultValue: false because it compares if (!defaultValue), or something likes this, it's truly a bug and will be fixed as soon as possible.

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

No branches or pull requests

2 participants