mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Fix Website auth.
This commit is contained in:
parent
1af93a17a3
commit
e28ee6597a
23 changed files with 108 additions and 105 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue