fix: qualify tenant filter in report stats
This commit is contained in:
@@ -1437,6 +1437,8 @@ func prefixReportMemberScope(where []string) []string {
|
|||||||
for _, condition := range where {
|
for _, condition := range where {
|
||||||
condition = strings.TrimSpace(condition)
|
condition = strings.TrimSpace(condition)
|
||||||
switch {
|
switch {
|
||||||
|
case strings.HasPrefix(condition, "tenant_id"):
|
||||||
|
out = append(out, "m."+condition)
|
||||||
case strings.HasPrefix(condition, "employment_state"):
|
case strings.HasPrefix(condition, "employment_state"):
|
||||||
out = append(out, "m."+condition)
|
out = append(out, "m."+condition)
|
||||||
case strings.HasPrefix(condition, "department_id"):
|
case strings.HasPrefix(condition, "department_id"):
|
||||||
|
|||||||
Reference in New Issue
Block a user