This repository has been archived on 2025-12-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
quizzy-application/drill-and-practice/services/authService.js
2023-03-09 13:37:03 +02:00

12 lines
325 B
JavaScript

import { sql } from "../database/database.js";
const findUser = async (email) => {
return await sql`SELECT * FROM users WHERE email = ${email}`;
};
const createUser = async (email, password) => {
return await sql`INSERT INTO users (email, password) VALUES (${email}, ${password})`;
};
export { findUser, createUser };