u
This commit is contained in:
@@ -34,6 +34,7 @@ SELECT
|
||||
cu.id,
|
||||
cu.google_auth_id AS googleAuthId,
|
||||
ga.email,
|
||||
ga.picture,
|
||||
cu.role
|
||||
FROM companyuser cu
|
||||
INNER JOIN google_auth ga ON ga.id = cu.google_auth_id
|
||||
@@ -43,11 +44,14 @@ ORDER BY ga.email
|
||||
|
||||
export const GET_IN_COMPANY = `
|
||||
SELECT
|
||||
id,
|
||||
google_auth_id AS googleAuthId,
|
||||
role
|
||||
FROM companyuser
|
||||
WHERE id = @id AND company_id = @companyId
|
||||
cu.id,
|
||||
cu.google_auth_id AS googleAuthId,
|
||||
ga.email,
|
||||
ga.picture,
|
||||
cu.role
|
||||
FROM companyuser cu
|
||||
INNER JOIN google_auth ga ON ga.id = cu.google_auth_id
|
||||
WHERE cu.id = @id AND cu.company_id = @companyId
|
||||
`;
|
||||
|
||||
export const GET_MEMBERSHIP = `
|
||||
|
||||
Reference in New Issue
Block a user