mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Renamed id routes for API.
This commit is contained in:
parent
53a991176b
commit
4429198397
42 changed files with 154 additions and 170 deletions
|
|
@ -138,7 +138,7 @@ export async function updateWebsite(
|
|||
): Promise<Website> {
|
||||
return prisma.client.website.update({
|
||||
where: {
|
||||
id: websiteId,
|
||||
websiteId,
|
||||
},
|
||||
data,
|
||||
});
|
||||
|
|
@ -160,7 +160,7 @@ export async function resetWebsite(
|
|||
where: { websiteId },
|
||||
}),
|
||||
client.website.update({
|
||||
where: { id: websiteId },
|
||||
where: { websiteId },
|
||||
data: {
|
||||
resetAt: new Date(),
|
||||
},
|
||||
|
|
@ -200,10 +200,10 @@ export async function deleteWebsite(
|
|||
data: {
|
||||
deletedAt: new Date(),
|
||||
},
|
||||
where: { id: websiteId },
|
||||
where: { websiteId },
|
||||
})
|
||||
: client.website.delete({
|
||||
where: { id: websiteId },
|
||||
where: { websiteId },
|
||||
}),
|
||||
]).then(async data => {
|
||||
if (cache.enabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue