umami/queries/admin/website/getUserWebsites.js

11 lines
183 B
JavaScript

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