feat(ui): hide spoiler banner, anonymize claims, optional guest name, list wishlists on home, drop esgotados toggle
This commit is contained in:
@@ -15,8 +15,7 @@ async function main() {
|
||||
const cmd = process.argv[2];
|
||||
|
||||
if (cmd === 'create') {
|
||||
const name = arg('name');
|
||||
if (!name) { console.error('--name is required'); process.exit(1); }
|
||||
const name = (arg('name') ?? '').trim() || 'Convidado';
|
||||
const [row] = await db.insert(guests).values({ name }).returning();
|
||||
const base = process.env.PUBLIC_BASE_URL ?? 'http://localhost:3000';
|
||||
console.log(JSON.stringify({ id: row.id, name: row.name, link: `${base}/?usr=${row.id}` }, null, 2));
|
||||
|
||||
Reference in New Issue
Block a user