Skip to content

Commit b79c720

Browse files
committed
fix: some dashboard fixes
1 parent 61eb173 commit b79c720

File tree

4 files changed

+1728
-1704
lines changed

4 files changed

+1728
-1704
lines changed

src/lib/server/supabase.server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,14 @@ export async function getPrivateProfile(id: string) {
121121

122122
export async function addFreeAccess(
123123
supabase: SupabaseClient,
124-
id: string,
124+
user_id: string,
125125
product: string,
126126
date_end: string
127127
) {
128128
const { error: err } = await supabase
129129
.schema("profiles")
130130
.from("free_access")
131-
.insert({ product: product, id: id, date_end: date_end })
131+
.insert({ product, user_id, date_end })
132132

133133
return err
134134
}

0 commit comments

Comments
 (0)