Skip to content

Commit

Permalink
Added URL to queryRecord deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanmishkin committed Aug 30, 2019
1 parent 5e49539 commit cd31f9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/serializer/addon/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,10 @@ const RESTSerializer = JSONSerializer.extend({
'The adapter returned an array for the primary data of a `queryRecord` response. This is deprecated as `queryRecord` should return a single record.';

deprecate(message, !isQueryRecordAnArray, {
id: 'ds.serializer.rest.queryRecord-array-response',
id: 'ember-data:store-queryrecord-array-response-with-restserializer',
until: '3.0',
url:
'https://deprecations.emberjs.com/ember-data/v2.x/#toc_store-queryrecord-array-response-with-restserializer',
});
}

Expand Down

0 comments on commit cd31f9c

Please sign in to comment.