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

13 lines
209 B
JavaScript

import prisma from 'lib/prisma';
export async function getUserWebsites(user_id) {
return prisma.client.website.findMany({
where: {
user_id,
},
orderBy: {
name: 'asc',
},
});
}