Skip to content

Commit

Permalink
Use getTypePolicy in Policies#identify, for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Oct 15, 2019
1 parent b23f360 commit b62c6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/inmemory/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class Policies {

let id: string | null;

const policy = typename && this.typePolicies[typename];
const policy = this.getTypePolicy(typename, false);
if (policy && policy.keyFn) {
id = policy.keyFn.call(this, object, context);
} else {
Expand Down

0 comments on commit b62c6d7

Please sign in to comment.