supabaseAdmin
.channel('public:parties')
.on(
'postgres_changes',
{ event: 'INSERT', schema: 'public', table: 'parties' },
(payload) => {
console.log('new party', payload.record); // how to type this function?
}
)
.subscribe();
supabaseAdmin
.channel('public:parties')
.on(
'postgres_changes',
{ event: 'INSERT', schema: 'public', table: 'parties' },
(payload) => {
console.log('new party', payload.record); // how to type this function?
}
)
.subscribe();