try {
const sql = ctx.db.insert(ticketInvitations).values([
{
guestId: 1,
ticketTypeId: '6458eeb763aee9ab82d8b79b',
eventId: 1,
amount: 1,
status: 'pending' as const,
}
]).toSQL();
console.log(sql);
} catch (error) {
console.error(error);
}
try {
const sql = ctx.db.insert(ticketInvitations).values([
{
guestId: 1,
ticketTypeId: '6458eeb763aee9ab82d8b79b',
eventId: 1,
amount: 1,
status: 'pending' as const,
}
]).toSQL();
console.log(sql);
} catch (error) {
console.error(error);
}