fix: Исправил ошибку метода Entity.isPersisted
This commit is contained in:
1 parent
41aa5d951a
commit
aa38fae8cc
1 file changed
+1
-1
+1
-1
@@ -48,7 +48,7 @@ export abstract class Entity<T extends Data> {
|
||||
}
|
||||
|
||||
isPersisted(): boolean {
|
||||
return this.__id !== ''
|
||||
return this.__id !== undefined && this.__id !== ''
|
||||
}
|
||||
|
||||
toString() {
|
||||
|
||||
Reference in new issue
Block a user