Skip to content

Commit

Permalink
fix: use ObjectLiteral in UpdateEvent rather than Entity (#7910)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnotjames committed Jul 15, 2021
1 parent 7869fb1 commit 78fbc14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subscriber/event/UpdateEvent.ts
Expand Up @@ -4,6 +4,7 @@ import {EntityManager} from "../../entity-manager/EntityManager";
import {QueryRunner} from "../../query-runner/QueryRunner";
import {Connection} from "../../connection/Connection";
import { EntityMetadata } from "../../metadata/EntityMetadata";
import { ObjectLiteral } from "../../common/ObjectLiteral";

/**
* UpdateEvent is an object that broadcaster sends to the entity subscriber when entity is being updated in the database.
Expand All @@ -30,7 +31,7 @@ export interface UpdateEvent<Entity> {
/**
* Updating entity.
*/
entity: Partial<Entity> | undefined;
entity: ObjectLiteral | undefined;

/**
* Metadata of the entity.
Expand Down

0 comments on commit 78fbc14

Please sign in to comment.