This commit is contained in:
seb
2026-11-02 00:51:18 +01:00
parent d0a33b1f82
commit 26f21cd7ac
6 changed files with 20 additions and 16 deletions

View File

@@ -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 = `