fix: resolve RLS infinite recursion in tastings and sessions
This commit is contained in:
@@ -41,7 +41,8 @@ export async function saveTasting(data: {
|
||||
if (data.buddy_ids && data.buddy_ids.length > 0) {
|
||||
const tags = data.buddy_ids.map(buddyId => ({
|
||||
tasting_id: tasting.id,
|
||||
buddy_id: buddyId
|
||||
buddy_id: buddyId,
|
||||
user_id: session.user.id
|
||||
}));
|
||||
const { error: tagError } = await supabase
|
||||
.from('tasting_tags')
|
||||
|
||||
Reference in New Issue
Block a user