mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Added website and team providers.
This commit is contained in:
parent
dbb3801e66
commit
cc273092d5
25 changed files with 123 additions and 98 deletions
|
|
@ -124,7 +124,7 @@ export async function updateWebsite(
|
|||
): Promise<Website> {
|
||||
return prisma.client.website.update({
|
||||
where: {
|
||||
websiteId,
|
||||
id: websiteId,
|
||||
},
|
||||
data,
|
||||
});
|
||||
|
|
@ -146,7 +146,7 @@ export async function resetWebsite(
|
|||
where: { websiteId },
|
||||
}),
|
||||
client.website.update({
|
||||
where: { websiteId },
|
||||
where: { id: websiteId },
|
||||
data: {
|
||||
resetAt: new Date(),
|
||||
},
|
||||
|
|
@ -186,10 +186,10 @@ export async function deleteWebsite(
|
|||
data: {
|
||||
deletedAt: new Date(),
|
||||
},
|
||||
where: { websiteId },
|
||||
where: { id: websiteId },
|
||||
})
|
||||
: client.website.delete({
|
||||
where: { websiteId },
|
||||
where: { id: websiteId },
|
||||
}),
|
||||
]).then(async data => {
|
||||
if (cache.enabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue