feat(session): use hostname in domain field for autocreated websites
parent
cf7fa3bbc7
commit
32d2a5830e
|
@ -33,7 +33,7 @@ export async function getSession(req) {
|
||||||
website = await createWebsite(user_id, {
|
website = await createWebsite(user_id, {
|
||||||
website_uuid,
|
website_uuid,
|
||||||
name: website_uuid,
|
name: website_uuid,
|
||||||
domain: `http://${website_uuid}`,
|
domain: `http://${hostname}`,
|
||||||
share_id: null,
|
share_id: null,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue