mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +01:00
change owner by id
This commit is contained in:
parent
34791c3f14
commit
d32d5e75e9
@ -23,6 +23,7 @@ export default async (req, res) => {
|
||||
if (req.method === 'POST') {
|
||||
const { name, domain, owner, enableShareUrl, shareId } = req.body;
|
||||
const { accountUuid } = req.auth;
|
||||
|
||||
let account;
|
||||
|
||||
if (accountUuid) {
|
||||
@ -43,7 +44,7 @@ export default async (req, res) => {
|
||||
name,
|
||||
domain,
|
||||
shareId: shareId ? shareId : newShareId,
|
||||
userId: account ? account.id : +owner || undefined,
|
||||
userId: +owner,
|
||||
},
|
||||
{ websiteUuid },
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user