kent1313 / kent1313/VBS-Project
/updateAttendance has hard coded leader ID
- Dominant language
- Dart
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Notice that the leader ID is always inserted as 2:
```SQL
var action = await conn.execute(
"insert into tblAttendance (today, kidID, verse, visitors, leaderID, organizationID)"
"values (:today, :kidID, :verse, :visitors, 2, :orgID);",
{
'kidID': attendance.kidID,
'today': attendance.today,
'verse': verse,
'visitors': visitors,
'orgID': organizationID,
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the /updateAttendance implementation and inspect the attendance INSERT query shown in the issue. Trace where the leader ID should come from, replace the hard-coded value with that source, and verify that the inserted attendance record uses the selected leader ID.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, sql
- Domain
- database, mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100