feat: finish back-end work (untested)
This commit is contained in:
@@ -31,6 +31,9 @@ FROM
|
||||
ordr_user
|
||||
INNER JOIN ordr_position
|
||||
ON job_position = ordr_position.id
|
||||
WHERE
|
||||
user_name LIKE '%' || $3 ||'%'
|
||||
AND position_name LIKE '%' || $4 || '%'
|
||||
ORDER BY user_name
|
||||
OFFSET $1
|
||||
LIMIT $2;
|
||||
@@ -45,7 +48,7 @@ SELECT
|
||||
is_admin::boolean
|
||||
FROM
|
||||
ordr_user
|
||||
INNER JOIN ordr_position
|
||||
LEFT JOIN ordr_position
|
||||
ON job_position = ordr_position.id
|
||||
AND ordr_user.sub_id = $1;
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user