ui: Use options.method for keying not options.type (#7308)

This commit is contained in:
John Cowen 2020-02-18 14:03:27 +00:00 committed by GitHub
parent 83a3136b5a
commit 89402d401b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ export default Service.extend({
return Promise.resolve(e);
},
acquire: function(options, xhr) {
const request = new Request(options.type, options.url, { body: options.data || {} }, xhr);
const request = new Request(options.method, options.url, { body: options.data || {} }, xhr);
return this.connections.acquire(request, request.getId());
},
complete: function() {