Skip to content

Commit 9aa73b5

Browse files
chimnayajithivinjabraham
authored andcommitted
Add group_id to AttendanceWithMember results
1 parent 6c74071 commit 9aa73b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/graphql/queries/attendance_queries.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl AttendanceQueries {
3030

3131
let records = sqlx::query_as::<_, AttendanceWithMember>(
3232
"SELECT att.attendance_id, att.member_id, att.date, att.is_present,
33-
att.time_in, att.time_out, mem.name, mem.year
33+
att.time_in, att.time_out, mem.name, mem.year, mem.group_id
3434
FROM Attendance att
3535
JOIN Member mem ON att.member_id = mem.member_id
3636
WHERE att.date = $1",

src/models/attendance.rs

+1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ pub struct AttendanceWithMember {
5656
pub time_out: Option<NaiveTime>,
5757
pub name: String,
5858
pub year: i32,
59+
pub group_id: i32,
5960
}

0 commit comments

Comments
 (0)