mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
13 lines
209 B
JavaScript
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',
|
|
},
|
|
});
|
|
}
|