umami/queries/admin/account/getAccountByUsername.js
2022-07-15 16:47:38 -07:00

12 lines
207 B
JavaScript

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