Skip to content

Commit

Permalink
fix: remove extra call to accounts endpoint from sites:create-template
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahetter committed Dec 18, 2024
1 parent 24c0a91 commit 7e44654
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/sites/sites-create-template.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'

import { OptionValues } from 'commander'
import inquirer from 'inquirer'
import pick from 'lodash/pick.js'
import { render } from 'prettyjson'
import { v4 as uuid } from 'uuid'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

import {
chalk,
Expand All @@ -30,7 +31,7 @@ import BaseCommand from '../base-command.js'
import { getSiteNameInput } from './sites-create.js'

export const sitesCreateTemplate = async (repository: string, options: OptionValues, command: BaseCommand) => {
const { api } = command.netlify
const { accounts, api } = command.netlify
await command.authenticate()

const { globalConfig } = command.netlify
Expand All @@ -52,7 +53,6 @@ export const sitesCreateTemplate = async (repository: string, options: OptionVal
error(`${getTerminalLink(chalk.bold(templateName), githubLink)} is not a valid GitHub template`)
return
}
const accounts = await api.listAccountsForUser()

let { accountSlug } = options

Expand Down

0 comments on commit 7e44654

Please sign in to comment.