Merge branch 'realtime' into 'master'
feat: realtime updates for study spaces and reports See merge request gk1623/drp-48!29 Co-authored-by: Gleb Koval <gleb@koval.net>
This commit is contained in:
@@ -207,6 +207,13 @@
|
||||
.insert(genTimings(studySpaceInsert.id));
|
||||
if (hoursErr) return alert(`Error saving opening times: ${hoursErr.message}`);
|
||||
}
|
||||
await supabase.channel("study_space_updates").send({
|
||||
type: "broadcast",
|
||||
event: "study_space_updated",
|
||||
payload: {
|
||||
study_space_id: studySpaceInsert.id
|
||||
}
|
||||
});
|
||||
alert("Thank you for your contribution!");
|
||||
// Redirect to the new study space page
|
||||
await goto(`/space/${studySpaceInsert.id}`, {
|
||||
|
||||
Reference in New Issue
Block a user