Skip to content

Commit 414f518

Browse files
authored
fix(cli): fix delete website not found (#1473)
1 parent 7d081e8 commit 414f518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/action/website/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function del(bucketName: string, options: any) {
5353
bucketName = appSchema.appid + '-' + bucketName
5454
}
5555

56-
const targetId = websites.find((item) => item.bucketName === bucketName)?.id
56+
const targetId = websites.find((item) => item.bucketName === bucketName)?._id
5757
if (!targetId) {
5858
console.log(`${getEmoji('❌')} website ${bucketName} not found`)
5959
return

0 commit comments

Comments
 (0)