Skip to content

Commit a399381

Browse files
committed
Update get endpoint to include share id
1 parent 960ce3d commit a399381

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

course-matrix/backend/src/controllers/sharesController.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828

2929
const { data: sharedUser, error: sharedError } = await supabase.rpc(
3030
"get_user_id_by_email",
31-
{ email: shared_email },
31+
{ email: shared_email }
3232
);
3333

3434
if (sharedError) {
@@ -103,7 +103,7 @@ export default {
103103
.schema("timetable")
104104
.from("shared")
105105
.select(
106-
"calendar_id, owner_id, shared_id, timetables!inner(id, user_id, timetable_title, semester, favorite)",
106+
"id,calendar_id, owner_id, shared_id, timetables!inner(id, user_id, timetable_title, semester, favorite)"
107107
)
108108
.eq("owner_id", user_id);
109109

@@ -137,7 +137,7 @@ export default {
137137
.schema("timetable")
138138
.from("shared")
139139
.select(
140-
"calendar_id, owner_id, shared_id, timetables!inner(id, user_id, timetable_title, semester, favorite)",
140+
"id, calendar_id, owner_id, shared_id, timetables!inner(id, user_id, timetable_title, semester, favorite)"
141141
)
142142
.eq("shared_id", user_id);
143143

@@ -216,7 +216,7 @@ export default {
216216
// Get Person id via email
217217
const { data: sharedUser, error: sharedError } = await supabase.rpc(
218218
"get_user_id_by_email",
219-
{ email: shared_email },
219+
{ email: shared_email }
220220
);
221221

222222
if (sharedError) {
@@ -274,7 +274,7 @@ export default {
274274
// Get Person id via email
275275
const { data: sharedUser, error: sharedError } = await supabase.rpc(
276276
"get_user_id_by_email",
277-
{ email: shared_email },
277+
{ email: shared_email }
278278
);
279279

280280
if (sharedError) {

0 commit comments

Comments
 (0)