Merge pull request 'Updated approvals lit filters' (#94) from fix-permissions into main
Deploy / deploy (push) Has been cancelled
Details
Deploy / deploy (push) Has been cancelled
Details
Reviewed-on: https://72.56.235.246.nip.io/gitea/romanskijdev/ruspet_portal_back/pulls/94
This commit is contained in:
commit
0f6342316f
File diff suppressed because it is too large
Load Diff
|
|
@ -59,6 +59,13 @@ func (s *ApprovalsReg) GetApprovalsListHandler(w http.ResponseWriter, r *http.Re
|
|||
}
|
||||
filter.DepartmentID = &id
|
||||
}
|
||||
if idStr := queryParams.Get("id"); idStr != "" {
|
||||
id, err := strconv.ParseUint(idStr, 10, 64)
|
||||
if err != nil {
|
||||
return nil, errors.New("invalid id")
|
||||
}
|
||||
filter.ID = &id
|
||||
}
|
||||
|
||||
contentSearch := queryParams.Get("content")
|
||||
if contentSearch != "" {
|
||||
|
|
|
|||
Loading…
Reference in New Issue