Skip to content

Commit 1f17d12

Browse files
author
Fabricio Vergara
authored
Update EntityFactory.ts
1 parent 3e3897e commit 1f17d12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/seeds/EntityFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class EntityFactory<Entity> implements EntityFactoryInterface<Entity> {
7171
private async makeEntity(entity: Entity): Promise<Entity> {
7272
for (const attribute in entity) {
7373
if (entity.hasOwnProperty(attribute)) {
74-
if (this.isPromiseLike(typeof entity[attribute])) {
74+
if (this.isPromiseLike(entity[attribute])) {
7575
entity[attribute] = await entity[attribute];
7676
}
7777

0 commit comments

Comments
 (0)