mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
11 lines
218 B
JavaScript
11 lines
218 B
JavaScript
import { prisma, runQuery } from 'lib/db/relational';
|
|
|
|
export async function getAccountByUsername(username) {
|
|
return runQuery(
|
|
prisma.account.findUnique({
|
|
where: {
|
|
username,
|
|
},
|
|
}),
|
|
);
|
|
}
|