ensure that reps cannot be assigned agent, this should be done manually by organizing leads in ST
This commit is contained in:
parent
d666849759
commit
ede7884b31
2 changed files with 39 additions and 5 deletions
2
store.go
2
store.go
|
|
@ -67,7 +67,7 @@ func (s *SQLStore) RepsFor(chapterID int64, dept string) ([]int64, error) {
|
|||
|
||||
func (s *SQLStore) EligibleMembers(chapterID int64, dept string) ([]int64, error) {
|
||||
return s.userIDs(`SELECT id FROM people
|
||||
WHERE is_eligible = 1 AND chapter_id = ? AND department = ?
|
||||
WHERE is_eligible = 1 AND is_rep = 0 AND chapter_id = ? AND department = ?
|
||||
ORDER BY id`, chapterID, dept)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue