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

10 lines
169 B
JavaScript

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