2022-08-28 06:38:35 +02:00
|
|
|
import prisma from 'lib/prisma';
|
2022-07-12 23:14:36 +02:00
|
|
|
|
|
|
|
export async function getAccountById(user_id) {
|
2022-08-28 06:38:35 +02:00
|
|
|
return prisma.client.account.findUnique({
|
|
|
|
where: {
|
|
|
|
user_id,
|
|
|
|
},
|
|
|
|
});
|
2022-07-12 23:14:36 +02:00
|
|
|
}
|