Fix Website auth.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { UmamiApi } from 'lib/enum';
|
||||
import { UmamiApi } from 'lib/constants';
|
||||
import cache from 'lib/cache';
|
||||
import prisma from 'lib/prisma';
|
||||
|
||||
|
||||
@@ -9,10 +9,8 @@ export async function createUserWebsite(
|
||||
});
|
||||
}
|
||||
|
||||
export async function getUserWebsite(
|
||||
where: Prisma.UserWebsiteWhereUniqueInput,
|
||||
): Promise<UserWebsite> {
|
||||
return prisma.client.userWebsite.findUnique({
|
||||
export async function getUserWebsite(where: Prisma.UserWebsiteWhereInput): Promise<UserWebsite> {
|
||||
return prisma.client.userWebsite.findFirst({
|
||||
where,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user