share api, queries, permissions, migration, entity lib

This commit is contained in:
Francis Cao committed 2026-01-15 16:25:56 -08:00
1 parent a270b0afea
commit 29f2c7b7d4
11 files changed
+256 -23

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { getLink, getPixel, getWebsite } from '@/queries/prisma';
export async function getEntity(entityId: string) {
const website = await getWebsite(entityId);
const link = await getLink(entityId);
const pixel = await getPixel(entityId);
const entity = website || link || pixel;
return entity;
}