Updated redis client. Soft deletes reset username.
This commit is contained in:
1 parent
37b94e5b96
commit
e92d958b24
6 files changed
+11
-37
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { Prisma, Team, TeamUser } from '@prisma/client';
|
||||
import { getRandomChars } from 'next-basics';
|
||||
import cache from 'lib/cache';
|
||||
import { ROLES } from 'lib/constants';
|
||||
import prisma from 'lib/prisma';
|
||||
@@ -222,6 +223,7 @@ export async function deleteUser(
|
||||
cloudMode
|
||||
? client.user.update({
|
||||
data: {
|
||||
username: getRandomChars(32),
|
||||
deletedAt: new Date(),
|
||||
},
|
||||
where: {
|
||||
|
||||
Reference in new issue
Block a user