mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
13 lines
269 B
TypeScript
13 lines
269 B
TypeScript
import prisma from 'lib/prisma';
|
|
import { Website } from '@prisma/client';
|
|
|
|
export async function getUserWebsites(userId): Promise<Website[]> {
|
|
return prisma.client.website.findMany({
|
|
where: {
|
|
userId,
|
|
},
|
|
orderBy: {
|
|
name: 'asc',
|
|
},
|
|
});
|
|
}
|