fix: resolve RLS infinite recursion in tastings and sessions

This commit is contained in:
2025-12-18 11:24:04 +01:00
parent e6974cd060
commit 5923dd0474
4 changed files with 24 additions and 18 deletions

View File

@@ -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')