umami/queries/admin/account/getAccountByUsername.js
2022-08-27 21:38:35 -07:00

10 lines
177 B
JavaScript

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