get data from tag table instead of user

This commit is contained in:
Kostas Drakontidis
2026-05-24 00:04:43 +03:00
parent 18932a3f4d
commit 9d024de5a6
@@ -1,9 +1,9 @@
import { prisma } from "../../lib/prisma.js"; import { prisma } from "../../lib/prisma.js";
export async function existsByUUID(uuid: string): Promise<boolean> { export async function existsByUUID(uuid: string): Promise<boolean> {
const user = await prisma.user.findUnique({ const tag = await prisma.tag.findUnique({
where: { id: uuid } where: { id: uuid }
}); });
return !!user; return !!tag;
} }