fix: slight vulnerability

This commit is contained in:
2025-12-03 20:49:33 +01:00
parent 2a0a7abe1a
commit 09871d3fae

View File

@@ -51,5 +51,14 @@ export async function GET(request: NextRequest) {
},
});
db.forEach((obj) => {
if (obj.channel.personalFor) {
// @ts-ignore
delete obj.channel.personalFor.email;
}
// @ts-ignore
delete obj.channel.obsChatGrantToken;
});
return Response.json(db);
}