changed to Daphnis

This commit is contained in:
polaris
2024-06-29 02:37:50 -04:00
parent 60824969ec
commit d465e6eb76
57 changed files with 71 additions and 66 deletions

View File

@ -1,16 +1,16 @@
"use server";
import { getAuth } from "@/auth/queries/getauth";
import { lachesis } from "@/lib/prisma";
import { daphnis } from "@/lib/prisma";
export async function getLachesisInUseCards() {
export async function getdaphnisInUseCards() {
const { user } = await getAuth();
if (!user || !user.accessCode) {
throw new Error("User is not authenticated or accessCode is missing");
}
const aimeUser = await lachesis.user.findFirst({
const aimeUser = await daphnis.user.findFirst({
where: {
accessCode: user.accessCode,
},