Compare commits
2 Commits
f5e3e3cca6
...
7d5ec1183c
| Author | SHA1 | Date | |
|---|---|---|---|
|
7d5ec1183c
|
|||
|
96d221be2a
|
@@ -1 +1 @@
|
||||
v24.14.0
|
||||
v24.14.1
|
||||
@@ -1,5 +1,5 @@
|
||||
import { jsonError, jsonResponse } from "../../../common.js";
|
||||
import { JsonObject } from "../../../../generated/prisma/internal/prismaNamespace.js";
|
||||
import { type JsonObject } from "../../../../generated/prisma/internal/prismaNamespace.js";
|
||||
|
||||
export async function onRequestGet(context: RequestContext) {
|
||||
const types: { [k: string]: number[] } = {
|
||||
@@ -53,7 +53,7 @@ export async function onRequestGet(context: RequestContext) {
|
||||
},
|
||||
});
|
||||
|
||||
if (item) delete (item.user as JsonObject).email;
|
||||
if (item) delete (item.user as JsonObject | null)?.email;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user