From 572df48667135807863d24706fcd05790527c578 Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Mon, 31 Oct 2022 10:38:37 -0700 Subject: [PATCH] assign backup --- 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 5a4f9c75..a3771427 100644 --- a/pages/api/websites/[id]/index.js +++ b/pages/api/websites/[id]/index.js @@ -44,7 +44,7 @@ export default async (req, res) => { name, domain, shareId: shareId ? shareId : newShareId, - userId: +owner, + userId: +owner || account.id, }, { websiteUuid }, );