Remove debug logging
This commit is contained in:
@@ -19,9 +19,7 @@ export const contentstackBaseProcedure = t.procedure.use(async function (opts) {
|
||||
|
||||
const parsedInput = langInput.safeParse(input)
|
||||
if (!parsedInput.success) {
|
||||
throw badRequestError(
|
||||
`Missing Lang in tRPC context: ${JSON.stringify(opts.ctx)}`
|
||||
)
|
||||
throw badRequestError("Missing Lang in tRPC context")
|
||||
}
|
||||
return opts.next({
|
||||
ctx: {
|
||||
@@ -39,9 +37,7 @@ export const contentstackBaseProcedure = t.procedure.use(async function (opts) {
|
||||
export const contentstackExtendedProcedureUID = contentstackBaseProcedure.use(
|
||||
async function (opts) {
|
||||
if (!opts.ctx.uid) {
|
||||
throw badRequestError(
|
||||
`Missing UID in tRPC context: ${JSON.stringify(opts.ctx)}`
|
||||
)
|
||||
throw badRequestError("Missing UID in tRPC context")
|
||||
}
|
||||
|
||||
return opts.next({
|
||||
|
||||
Reference in New Issue
Block a user