mirror of
https://github.com/fergalmoran/snapp.git
synced 2025-12-22 09:41:45 +00:00
10 lines
252 B
TypeScript
10 lines
252 B
TypeScript
import { prisma } from '$lib/server/prisma';
|
|
|
|
export const count_watchlisted = async (
|
|
allowed?: boolean,
|
|
username?: string | object,
|
|
domain?: string | object
|
|
) => {
|
|
return await prisma.watchlist.count({ where: { allowed, username, domain } });
|
|
};
|