sharing fix

This commit is contained in:
polaris 2024-06-29 03:12:29 -04:00
parent bde370314e
commit 30825e20f1
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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) {

View File

@ -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: {