From f11c7b29be693d055e2f30ac0f0002be41a871ae Mon Sep 17 00:00:00 2001 From: James Hollowell Date: Sun, 7 Jul 2019 14:27:19 -0400 Subject: [PATCH] fix(data): allow ChangeSetItemFactory to update entities with number ids (#1995) Allow the `update` method of ChangeSetItemFactory to accept entities with numerical IDs. This seems to be the intent, as the `Update` it accepts can use either a string or a number for the ID, while the `update` method only allows for string IDs Closes #1988 --- modules/data/src/actions/entity-cache-change-set.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/data/src/actions/entity-cache-change-set.ts b/modules/data/src/actions/entity-cache-change-set.ts index c9786a4951..6da7c10eab 100644 --- a/modules/data/src/actions/entity-cache-change-set.ts +++ b/modules/data/src/actions/entity-cache-change-set.ts @@ -85,7 +85,7 @@ export class ChangeSetItemFactory { } /** Create the ChangeSetUpdate for Updates of entities of the given entity type */ - update( + update( entityName: string, updates: Update | Update[] ): ChangeSetUpdate {