From 30825e20f1f2a38b18ec5b082dda1d9b97e3ccfa Mon Sep 17 00:00:00 2001 From: polaris Date: Sat, 29 Jun 2024 03:12:29 -0400 Subject: [PATCH] sharing fix --- .../(settings)/settings/(settings components)/home/home.tsx | 4 ++-- lib/GetUserAccessCode.ts | 2 +- lib/api.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/(authenticated)/(settings)/settings/(settings components)/home/home.tsx b/app/(authenticated)/(settings)/settings/(settings components)/home/home.tsx index 9dddf6d..0e62d05 100644 --- a/app/(authenticated)/(settings)/settings/(settings components)/home/home.tsx +++ b/app/(authenticated)/(settings)/settings/(settings components)/home/home.tsx @@ -13,7 +13,7 @@ import { import { Label } from "@/components/ui/label"; import { useToast } from "@/components/ui/use-toast"; import { LinkAimeCard } from "@/lib/LinkNewAccessCode"; -import { getLachesisInUseCards } from "@/lib/GetUserAccessCode"; +import { getDaphnisInUseCards } from "@/lib/GetUserAccessCode"; import SettingsSubMenuNavigation from "@/components/navigationbar/settingsnavigation"; const GeneralSettings = () => { @@ -31,7 +31,7 @@ const GeneralSettings = () => { const fetchCurrentAccessCode = async () => { try { - const aimeUser = await getLachesisInUseCards(); + const aimeUser = await getDaphnisInUseCards(); if (aimeUser) { setCurrentAccessCode(aimeUser.accessCode || null); } diff --git a/lib/GetUserAccessCode.ts b/lib/GetUserAccessCode.ts index 64118e1..da57fa6 100644 --- a/lib/GetUserAccessCode.ts +++ b/lib/GetUserAccessCode.ts @@ -3,7 +3,7 @@ import { getAuth } from "@/auth/queries/getauth"; import { daphnis } from "@/lib/prisma"; -export async function getdaphnisInUseCards() { +export async function getDaphnisInUseCards() { const { user } = await getAuth(); if (!user || !user.accessCode) { diff --git a/lib/api.ts b/lib/api.ts index ecbade7..afc4972 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -95,7 +95,7 @@ export async function getSongsWithTitles(userId: number) { } } -export async function SharingPlaylogId(playlogid: number) { +export async function generatePlaylogId(playlogid: number) { try { const tokens = await daphnis.linkSharingToken.findMany({ where: {