mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Initial Typescript models.
This commit is contained in:
parent
04e9f06e93
commit
0aaba8cbd1
74 changed files with 1144 additions and 768 deletions
11
queries/admin/website/updateWebsite.ts
Normal file
11
queries/admin/website/updateWebsite.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { Prisma, Website } from '@prisma/client';
|
||||
import prisma from 'lib/prisma';
|
||||
|
||||
export async function updateWebsite(websiteId, data: Prisma.WebsiteUpdateInput): Promise<Website> {
|
||||
return prisma.client.website.update({
|
||||
where: {
|
||||
id: websiteId,
|
||||
},
|
||||
data,
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue