Initial cut - untested.

This commit is contained in:
2025-09-25 09:31:02 -07:00
parent 7a0666cc6c
commit 3775522265
33 changed files with 351 additions and 346 deletions

View File

@@ -31,10 +31,10 @@ import {InputLabel, List, ListItem, ListItemButton, ListItemText} from "@mui/mat
export default () => {
const navigate = useNavigate()
const [value, setValue] = useState("")
const search = () => {
const search = async () => {
if(value && value.length > 1) {
let students = Students.find({email: {$regex: value, $options: 'i'}}).fetch()
let staff = Staff.find({email: {$regex: value, $options: 'i'}}).fetch()
let students = await Students.find({email: {$regex: value, $options: 'i'}}).fetchAsync()
let staff = await Staff.find({email: {$regex: value, $options: 'i'}}).fetchAsync()
let all = [...staff, ...students]
if(all.length > 1) {