Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 1.5786 |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | 4 | import App from "app"; |
|
22 | 4 | Movies.prototype.search = function (term, page = 1) { |
|
23 | return new Promise((resolve, reject) => { |
||
24 | const payload = this.makePayload({ |
||
25 | query: term, |
||
26 | page: page |
||
27 | }); |
||
28 | |||
29 | this.Request.send('get', this.basepath + "search/multi", payload, (res) =>{ |
||
30 | resolve(res.body.results); |
||
31 | }, (err) => { |
||
32 | reject(err); |
||
33 | }); |
||
34 | }); |
||
35 | } |
||
36 | |||
64 |