umami/queries/admin/account/getAccountByUsername.js
2022-08-25 22:20:30 -07:00

12 lines
215 B
JavaScript

import { prisma, runQuery } from 'lib/relational';
export async function getAccountByUsername(username) {
return runQuery(
prisma.account.findUnique({
where: {
username,
},
}),
);
}