Browse Source

Fix `useCurrentTeam` logic

NOTE: This option is not used anywhere as of right now
master
Matheus Fernandes 8 years ago
parent
commit
20d93f317d
No known key found for this signature in database GPG Key ID: DD07CA4EA7B65C4F
  1. 2
      lib/index.js

2
lib/index.js

@ -848,7 +848,7 @@ module.exports = class Now extends EventEmitter {
}
_fetch(_url, opts = {}) {
if (!opts.useCurrentTeam && this.currentTeam) {
if (opts.useCurrentTeam !== false && this.currentTeam) {
const parsedUrl = parseUrl(_url, true)
const query = parsedUrl.query

Loading…
Cancel
Save