Skip to content

Commit

Permalink
fix coerceid deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Nov 27, 2024
1 parent 23d943c commit a355111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/graph/src/-private/coerce-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function coerceId(id: Coercable): string | null {
`The resource id '<${typeof id}> ${String(
id
)} ' is not normalized. Update your application code to use '${JSON.stringify(normalized)}' instead.`,
/* inline-macro-config */ DISABLE_6X_DEPRECATIONS && normalized === id,
/* inline-macro-config */ DISABLE_6X_DEPRECATIONS ? true : normalized === id,
{
id: 'ember-data:deprecate-non-strict-id',
until: '6.0',
Expand Down
2 changes: 1 addition & 1 deletion packages/store/src/-private/utils/coerce-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function coerceId(id: unknown): string | null {
`The resource id '<${typeof id}> ${String(
id
)} ' is not normalized. Update your application code to use '${JSON.stringify(normalized)}' instead.`,
/* inline-macro-config */ DISABLE_6X_DEPRECATIONS && normalized === id,
/* inline-macro-config */ DISABLE_6X_DEPRECATIONS ? true : normalized === id,
{
id: 'ember-data:deprecate-non-strict-id',
until: '6.0',
Expand Down

0 comments on commit a355111

Please sign in to comment.