Skip to content

Commit

Permalink
Remove deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
marpo60 committed Mar 17, 2017
1 parent 963b8f8 commit cf593f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/adapters/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default DS.RESTAdapter.extend({
* @param query
* @returns {Ember.RSVP.Promise}
*/
findQuery: function(store, type, query) {
query: function(store, type, query) {
return this.send(type, 'READ_LIST', query);
},

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/socket-adapter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ test('Find All Posts without options', function(assert) {
test('Find Posts with meta', function(assert) {
assert.expect(2);
run(() => {
all([store.findQuery('post', { limit: 1 }), store.findQuery('post', { limit: 2 })]).then((response) => {
all([store.query('post', { limit: 1 }), store.findQuery('post', { limit: 2 })]).then((response) => {
assert.equal(get(response[0], 'meta.total'), 1, 'meta.total in first query should be equal 1');
assert.equal(get(response[1], 'meta.total'), 2, 'meta.total in first query should be equal 2');
});
Expand Down

0 comments on commit cf593f7

Please sign in to comment.