mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
fix schema file.
This commit is contained in:
parent
afe6d8994b
commit
0c33bb9e2d
2 changed files with 15 additions and 20 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import prisma from 'lib/prisma';
|
||||
import redis from 'lib/redis';
|
||||
|
||||
export async function resetWebsite(website_id) {
|
||||
const { client, transaction } = prisma;
|
||||
|
|
@ -17,9 +16,5 @@ export async function resetWebsite(website_id) {
|
|||
client.session.deleteMany({
|
||||
where: { website: { website_id } },
|
||||
}),
|
||||
]).then(async res => {
|
||||
if (redis.client) {
|
||||
await redis.del(`website:${res.website_uuid}`);
|
||||
}
|
||||
});
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue