Skip to content

Commit

Permalink
fix(cli): fix get website by _id property (labring#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingtsingw authored Jul 6, 2023
1 parent 918c8d3 commit 214fd7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/action/website/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function custom(bucketName: string, domain: string, options: any) {
bucketName = appSchema.appid + '-' + bucketName
}

const targetId = websites.find((item) => item.bucketName === bucketName)?.id
const targetId = websites.find((item) => item.bucketName === bucketName)?._id
if (!targetId) {
console.log(`${getEmoji('❌')} website ${bucketName} not found`)
return
Expand Down

0 comments on commit 214fd7f

Please sign in to comment.