feat(session): use hostname in domain field for autocreated websites

pull/381/head
SinaniG 2020-11-05 17:13:17 +03:00
parent cf7fa3bbc7
commit 32d2a5830e
1 changed files with 1 additions and 1 deletions

View File

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