mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
Add some api/team endpoints.
This commit is contained in:
parent
f5eb974d8d
commit
25279271ce
10 changed files with 172 additions and 43 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import { Prisma, TeamWebsite } from '@prisma/client';
|
||||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function createTeamWebsite(data: Prisma.TeamWebsiteCreateInput): Promise<TeamWebsite> {
|
||||
export async function createTeamWebsite(
|
||||
data: Prisma.TeamWebsiteCreateInput | Prisma.TeamWebsiteUncheckedCreateInput,
|
||||
): Promise<TeamWebsite> {
|
||||
return prisma.client.teamWebsite.create({
|
||||
data,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue