mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
14 lines
279 B
TypeScript
14 lines
279 B
TypeScript
import DBClient from '@/prisma/DBClient';
|
|
|
|
const findUserByUsername = async (username: string) =>
|
|
DBClient.instance.user.findFirst({
|
|
where: { username },
|
|
select: {
|
|
id: true,
|
|
username: true,
|
|
hash: true,
|
|
},
|
|
});
|
|
|
|
export default findUserByUsername;
|