refactor
This commit is contained in:
parent
d0ea6e9eec
commit
2967f1a5af
31 changed files with 469 additions and 165 deletions
|
|
@ -207,8 +207,8 @@ func (s *Store) ListAudit(ctx context.Context, filter AuditFilter) ([]domain.Aud
|
|||
args []any
|
||||
)
|
||||
if filter.Actor != "" {
|
||||
where = append(where, `actor = ?`)
|
||||
args = append(args, filter.Actor)
|
||||
where = append(where, `actor_email LIKE ?`)
|
||||
args = append(args, "%"+filter.Actor+"%")
|
||||
}
|
||||
if filter.Action != "" {
|
||||
where = append(where, `action = ?`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue