const { authConf } = require('src/auth-utils');
const authApi = require('src/core/auth');


function list(organizationId, {auth}) {
  return authApi.organizations.listTeams(organizationId, {
      conf: authConf(auth)
    })
    .then(({data}) => data);
}


function get(id, {auth}) {
  return authApi.teams.get(id, {conf: authConf(auth)})
    .then(({data}) => data);
}


module.exports = {
  list,
  get
};

const { authConf } = require('src/auth-utils');
const authApi = require('src/core/auth');


function list(organizationId, params, {auth}) {
  return authApi.organizations.listTeams(organizationId, {
      conf: authConf(auth)
    })
    .then(({data}) => data);
}


function get(id, params, {auth}) {
  return authApi.teams.get(id, {conf: authConf(auth)})
    .then(({data}) => data);
}


module.exports = {
  list,
  get
};

Add missing params argument to api.team methods
Add missing params argument to api.team methods
