From 5c683f9103b5e89fcc92be4ba682bd872d4798e2 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Thu, 19 Jan 2023 11:15:33 -0800 Subject: [PATCH] Fix share url update. (#1754) --- pages/api/websites/[id]/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/websites/[id]/index.js b/pages/api/websites/[id]/index.js index 74f11c95..1ed85853 100644 --- a/pages/api/websites/[id]/index.js +++ b/pages/api/websites/[id]/index.js @@ -47,7 +47,7 @@ export default async (req, res) => { { name, domain, - shareId: shareId ? shareId : newShareId, + shareId: shareId && enableShareUrl === undefined ? shareId : newShareId, userId: +owner || account.id, }, { websiteUuid },