Various fixes

This commit is contained in:
barsdeveloper
2022-03-19 14:46:53 +01:00
parent 391a537a78
commit 42615b93f8
25 changed files with 267 additions and 131 deletions

View File

@@ -3,13 +3,13 @@ import IEntity from "./IEntity"
export default class IntegerEntity extends IEntity {
static attributes = {
value: Number
value: Number,
}
constructor(options = {}) {
if (options.constructor === Number || options.constructor === String) {
if (options.constructor == Number || options.constructor == String) {
options = {
value: options
value: options,
}
}
super(options)