fix: Исправил ошибку метода Entity.isPersisted

This commit is contained in:
Nikita Dezzpil Orlov committed 2022-01-31 17:40:17 +03:00
1 parent 41aa5d951a
commit aa38fae8cc
1 file changed
+1 -1
+1 -1
View File
@@ -48,7 +48,7 @@ export abstract class Entity<T extends Data> {
} }
isPersisted(): boolean { isPersisted(): boolean {
return this.__id !== '' return this.__id !== undefined && this.__id !== ''
} }
toString() { toString() {