Fix Website auth.
This commit is contained in:
1 parent
1af93a17a3
commit
e28ee6597a
23 files changed
+108
-105
No files matched your search
@@ -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