From 32d2a5830ea036f45b216c879bdfce166acbd4ad Mon Sep 17 00:00:00 2001 From: SinaniG Date: Thu, 5 Nov 2020 17:13:17 +0300 Subject: [PATCH] feat(session): use hostname in domain field for autocreated websites --- lib/session.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.js b/lib/session.js index 6a234457..50125c7d 100644 --- a/lib/session.js +++ b/lib/session.js @@ -33,7 +33,7 @@ export async function getSession(req) { website = await createWebsite(user_id, { website_uuid, name: website_uuid, - domain: `http://${website_uuid}`, + domain: `http://${hostname}`, share_id: null, }); }