share api, queries, permissions, migration, entity lib
This commit is contained in:
1 parent
a270b0afea
commit
29f2c7b7d4
11 files changed
+256
-23
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user