feat: realtime updates for study spaces and reports
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
.select()
|
||||
.single();
|
||||
|
||||
await supabase.channel("report_updates").send({
|
||||
type: "broadcast",
|
||||
event: "reports_updated",
|
||||
payload: { study_space_id: studySpaceId }
|
||||
});
|
||||
|
||||
if (reportUploadError)
|
||||
return alert(`Error submitting report: ${reportUploadError.message}`);
|
||||
else alert("Report submitted successfully!");
|
||||
|
||||
Reference in New Issue
Block a user