Skip to content

Commit

Permalink
revert: changes that are were needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinsandilya committed Apr 1, 2024
1 parent 4f700f7 commit 0acfea7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
20 changes: 10 additions & 10 deletions packages/engine-backend/router/_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ export const trpc = initTRPC
})

export const publicProcedure = trpc.procedure
// Enable me for logs
.use(({next, ctx, input, rawInput, meta, path}) => {
console.log('[trpc]', {
input,
rawInput,
meta,
path,
})
return next({ctx})
})
// Enable me for logs
// .use(({next, ctx, input, rawInput, meta, path}) => {
// console.log('[trpc]', {
// input,
// rawInput,
// meta,
// path,
// })
// return next({ctx})
// })

export const protectedProcedure = publicProcedure.use(({next, ctx}) => {
console.log('DEBUG', ctx.viewer)
Expand Down
6 changes: 1 addition & 5 deletions packages/engine-backend/router/resourceRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ export const resourceRouter = trpc.router({
return
}
const reso = await ctx.asOrgIfNeeded.getResourceExpandedOrFail(resoId)
console.log(
'[syncResource]',
opts?.metaOnly,
reso.connectorConfig.connector.sourceSync,
)
console.log('[syncResource]', reso, opts)
// No need to checkResource here as sourceSync should take care of it

if (opts?.metaOnly) {
Expand Down
1 change: 0 additions & 1 deletion packages/engine-frontend/VeniceConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ export function _VeniceConnect({
}) {
const nangoPublicKey =
_trpcReact.getPublicEnv.useQuery().data?.NEXT_PUBLIC_NANGO_PUBLIC_KEY
console.log('DEBUG', connectorConfigInfos, clientConnectors)
const nangoFrontend = React.useMemo(
() =>
nangoPublicKey &&
Expand Down

0 comments on commit 0acfea7

Please sign in to comment.