InvestorChris
04/07/2022, 2:12 PMNeedle
04/07/2022, 2:12 PM/title
command!
We have solved your problem?
Click the button below to archive it.InvestorChris
04/07/2022, 2:13 PMInvestorChris
04/07/2022, 2:34 PMconst { data, error } = await supabase
.from('Bookings')
.insert([
{ user_id: user_id,
day_booked: day_wanted_to_book,
time_booked: hour_wanted_to_book,
}])
garyaustin
04/07/2022, 4:27 PMNeedle
04/07/2022, 4:27 PMInvestorChris
04/07/2022, 4:35 PMInvestorChris
04/07/2022, 4:41 PMgaryaustin
04/07/2022, 5:02 PMInvestorChris
04/07/2022, 6:05 PMInvestorChris
04/07/2022, 6:05 PMInvestorChris
04/07/2022, 6:08 PMInvestorChris
04/07/2022, 6:08 PMInvestorChris
04/07/2022, 6:08 PMconst { data, error } = await supabase
.from('new_bookings')
.insert([
{ time_for_booking: "heello"},
])
InvestorChris
04/07/2022, 6:10 PMInvestorChris
04/07/2022, 6:11 PMasync function sendBookingData(session: any, day: String, time: String) {
const user_id = session.user.id
const day_wanted_to_book = day
const hour_wanted_to_book = time
console.log("before supabase insert") // works
const { data, error } = await supabase
.from('new_bookings')
.insert([
{ time_for_booking: "heello"},
])
console.log("after supabase insert") //does not work
}
}
InvestorChris
04/07/2022, 6:11 PMInvestorChris
04/07/2022, 6:18 PMgaryaustin
04/07/2022, 6:19 PMInvestorChris
04/07/2022, 6:24 PMInvestorChris
04/08/2022, 3:00 PMInvestorChris
04/08/2022, 3:00 PMNeedle
04/08/2022, 3:00 PM