File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export async function infoSite(args = []) {
121121 }
122122
123123 const data = await response . json ( ) ;
124- const result = await deleteSubdomain ( uuid ) ;
124+ const result = await deleteSubdomain ( [ uuid ] ) ;
125125 if ( result ) {
126126 // check if data is empty object
127127 if ( Object . keys ( data ) . length === 0 ) {
@@ -183,7 +183,7 @@ export async function infoSite(args = []) {
183183 } else {
184184 console . log ( chalk . yellow ( `However, It's linked to different directory at: ${ subdomainObj . root_dir ?. path } ` ) ) ;
185185 console . log ( chalk . cyan ( `We'll try to unlink this subdomain from that directory...` ) ) ;
186- const result = await deleteSubdomain ( subdomainObj ?. uid ) ;
186+ const result = await deleteSubdomain ( [ subdomainObj ?. uid ] ) ;
187187 if ( result ) {
188188 console . log ( chalk . green ( 'Looks like this subdomain is free again, please try again.' ) ) ;
189189 return ;
You can’t perform that action at this time.
0 commit comments