Skip to content

Commit

Permalink
Merge pull request #4 from KernelDeimos/fix/deleteSubdomain-args
Browse files Browse the repository at this point in the history
fix: use array args when calling DeleteSubdomain
  • Loading branch information
bitsnaps authored Feb 7, 2025
2 parents f0cf652 + 0af98be commit f4ba764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/sites.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function infoSite(args = []) {
}

const data = await response.json();
const result = await deleteSubdomain(uuid);
const result = await deleteSubdomain([uuid]);
if (result){
// check if data is empty object
if (Object.keys(data).length === 0){
Expand Down Expand Up @@ -183,7 +183,7 @@ export async function infoSite(args = []) {
} else {
console.log(chalk.yellow(`However, It's linked to different directory at: ${subdomainObj.root_dir?.path}`));
console.log(chalk.cyan(`We'll try to unlink this subdomain from that directory...`));
const result = await deleteSubdomain(subdomainObj?.uid);
const result = await deleteSubdomain([subdomainObj?.uid]);
if (result) {
console.log(chalk.green('Looks like this subdomain is free again, please try again.'));
return;
Expand Down

0 comments on commit f4ba764

Please sign in to comment.