mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
14 lines
253 B
JavaScript
14 lines
253 B
JavaScript
import { prisma, runQuery } from 'lib/relational';
|
|
|
|
export async function getUserWebsites(user_id) {
|
|
return runQuery(
|
|
prisma.website.findMany({
|
|
where: {
|
|
user_id,
|
|
},
|
|
orderBy: {
|
|
name: 'asc',
|
|
},
|
|
}),
|
|
);
|
|
}
|