mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
12 lines
207 B
JavaScript
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,
|
|
},
|
|
}),
|
|
);
|
|
}
|