umami/queries/admin/account/getAccountById.js
2022-07-12 15:14:27 -07:00

13 lines
225 B
JavaScript

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