Fix SQL formatting convention (#390) (#421)

Co-authored-by: Tyler Howard <22920537+Tyler98ky@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
This commit is contained in:
Tyler Howard
2023-11-14 06:24:26 -08:00
committed by GitHub
parent 1813c7dc45
commit c64f396fa9
3 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ import { authConfig } from './auth.config';
async function getUser(email: string): Promise<User | undefined> {
try {
const user = await sql<User>`SELECT * from USERS where email=${email}`;
const user = await sql<User>`SELECT * FROM users WHERE email=${email}`;
return user.rows[0];
} catch (error) {
console.error('Failed to fetch user:', error);