Skip to content

Commit

Permalink
fix(kinsta): list command using wrong flag for company
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Nov 6, 2023
1 parent d9eed51 commit bf1242a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/kinsta/sites/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ export default class List extends KinstaCommand {
static examples = ['<%= config.bin %> <%= command.id %>']

static flags = {
companyId: Flags.string({
company: Flags.string({
required: true,
env: 'IROOTS_KINSTA_COMPANY_ID',
}),
}

public async run(): Promise<void> {
const {flags} = await this.parse(List)
const {apiKey, companyId} = flags
const {apiKey, company} = flags

const sites = await getAllSites(apiKey, companyId)
const sites = await getAllSites(apiKey, company)
console.table(sites)
}
}

0 comments on commit bf1242a

Please sign in to comment.