You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/api/scim/user_repository.go
+33-14Lines changed: 33 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ import (
7
7
"fmt"
8
8
"strconv"
9
9
"strings"
10
+
"time"
10
11
11
12
"github.com/gofrs/uuid"
12
13
"github.com/jackc/pgconn"
@@ -29,6 +30,24 @@ const countUsers = `SELECT COUNT(*) FROM scim_users WHERE sso_provider_id = ? AN
29
30
30
31
constlistUsers=`SELECT id, resource, active, created_at, updated_at FROM scim_users WHERE sso_provider_id = ? AND deleted_at IS NULL ORDER BY %s LIMIT ? OFFSET ?`
err:=r.db.WithContext(ctx).RawQuery("SELECT id, resource, active, created_at, updated_at FROM scim_users WHERE sso_provider_id = ? AND deleted_at IS NULL AND id = ?", r.tenant(ctx), id).All(&rows)
err:=r.db.WithContext(ctx).RawQuery("SELECT id, resource, active, created_at, updated_at FROM scim_users WHERE sso_provider_id = ? AND deleted_at IS NULL AND id = ?", r.tenant(ctx), id).All(&rows)
0 commit comments