Merge branch 'dev' into feat/um-285-report-schema

This commit is contained in:
Brian Cao 2023-05-08 23:47:25 -07:00
commit dd2db308ee
7 changed files with 48 additions and 42 deletions

View file

@ -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: {