mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
parent
3072f02f1b
commit
912d2d544d
4 changed files with 19 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ export async function setWebsiteDate(websiteId: string, userId: string, data: Re
|
|||
const website = await fetchWebsite(websiteId);
|
||||
const cloudMode = !!process.env.CLOUD_MODE;
|
||||
|
||||
if (cloudMode && !website.teamId) {
|
||||
if (cloudMode && website && !website.teamId) {
|
||||
const account = await fetchAccount(userId);
|
||||
|
||||
if (!account?.hasSubscription) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue