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 }, );