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

12 lines
207 B
JavaScript

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