Skip to content

Commit 43db7fc

Browse files
committed
adjust filter to only show teh sales reps
1 parent 6e8ac95 commit 43db7fc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Sources/LocalAuthentication/Schema/Account.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ public class Account: PostgresStORM {
175175
} else {
176176
try? t.select(
177177
columns: [],
178-
whereclause: "region = $1",
179-
params: [region],
178+
whereclause: "region = $1 AND usertype != $2",
179+
params: [region, "manager"],
180180
orderby: ["username"],
181181
cursor: cursor
182182
)
@@ -192,6 +192,8 @@ public class Account: PostgresStORM {
192192
r["detail"] = row.detail
193193
r["source"] = row.source
194194
r["remoteid"] = row.remoteid
195+
r["region"] = row.region
196+
r["company"] = row.company
195197
users.append(r)
196198
}
197199
return users

0 commit comments

Comments
 (0)