hermes-web/data/impersonation.ts

10 lines
248 B
TypeScript
Raw Normal View History

2024-01-04 16:57:32 -05:00
import { db } from "@/lib/db";
export const getImpersonationById = async (id: string) => {
try {
const impersonation = await db.impersonation.findUnique({ where: { sourceId: id }})
return impersonation;
} catch {
return null;
}
}