Merge branch 'dev' into brian/session-fix

This commit is contained in:
Brian Cao 2022-07-24 23:11:46 -07:00
commit af7c6f73b0
3 changed files with 14 additions and 16 deletions

View File

@ -104,14 +104,14 @@
"metrics.page-views": "Wyświetlenia strony",
"metrics.pages": "Strony",
"metrics.referrers": "Źródła odsyłające",
"metrics.screens": "Screens",
"metrics.screens": "Ekrany",
"metrics.unique-visitors": "Unikalni odwiedzający",
"metrics.utm": "UTM",
"metrics.utm_campaign": "UTM Campaign",
"metrics.utm_content": "UTM Content",
"metrics.utm_medium": "UTM Medium",
"metrics.utm_source": "UTM Source",
"metrics.utm_term": "UTM Term",
"metrics.utm": "Kampanie UTM",
"metrics.utm_campaign": "Kampania",
"metrics.utm_content": "Treść",
"metrics.utm_medium": "Medium",
"metrics.utm_source": "Źródło",
"metrics.utm_term": "Słowa kluczowe",
"metrics.views": "Wyświetlenia",
"metrics.visitors": "Odwiedzający"
}

View File

@ -106,12 +106,12 @@
"metrics.referrers": "来源域名",
"metrics.screens": "屏幕尺寸",
"metrics.unique-visitors": "独立访客",
"metrics.utm": "UTM",
"metrics.utm_campaign": "UTM Campaign",
"metrics.utm_content": "UTM Content",
"metrics.utm_medium": "UTM Medium",
"metrics.utm_source": "UTM Source",
"metrics.utm_term": "UTM Term",
"metrics.utm": "流量渠道标记(UTM",
"metrics.utm_campaign": "流量标识",
"metrics.utm_content": "搜索关键字",
"metrics.utm_medium": "流量来源类型",
"metrics.utm_source": "流量来源",
"metrics.utm_term": "流量搜索关键字",
"metrics.views": "浏览量",
"metrics.visitors": "访客"
}

View File

@ -37,9 +37,7 @@ export async function getSession(req) {
let session = await getSessionByUuid(session_uuid);
if (Array.isArray(session)) {
session = session.length !== 0 ? session[0] : null;
}
session = Array.isArray(session) && session[0] ? session[0] : session;
if (!session) {
try {