fix schema file.

This commit is contained in:
Brian Cao 2022-09-01 14:54:25 -07:00
parent afe6d8994b
commit 0c33bb9e2d
2 changed files with 15 additions and 20 deletions

View file

@ -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}`);
}
});
]);
}