📈 Remove user email from Sentry tracking

This commit is contained in:
Baptiste Arnaud
2023-08-18 14:18:28 +02:00
parent 19fc576957
commit a4f7f8fae7
3 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const user = await getAuthenticatedUser(req, res)
if (!user) return notAuthenticated(res)
setUser({ email: user.email ?? undefined, id: user.id })
setUser({ id: user.id })
if (req.method === 'GET') {
const credentialsId = req.query.credentialsId as string | undefined
if (!credentialsId) return badRequest(res)

View File

@@ -14,7 +14,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
const user = await getAuthenticatedUser(req, res)
if (!user) return notAuthenticated(res)
setUser({ email: user.email ?? undefined, id: user.id })
setUser({ id: user.id })
if (req.method === 'GET') {
const credentialsId = req.query.credentialsId as string | undefined
if (!credentialsId) return badRequest(res)