Remove backend events that we dont need to watch

This commit is contained in:
Jackson Harper 2023-06-14 13:19:39 +08:00
parent 7f81771e4a
commit aaf6bb617f

View file

@ -438,15 +438,6 @@ export const getArticleResolver: ResolverFn<
format === ArticleFormat.Distiller ||
!!graphqlFields(info).article.originalHtml
analytics.track({
userId: claims?.uid,
event: 'link_fetched',
properties: {
slug,
env: env.server.apiEnv,
},
})
// We allow the backend to use the ID instead of a slug to fetch the article
const page =
(await getPageByParam(
@ -900,15 +891,6 @@ export const searchResolver = authorized<
const searchQuery = parseSearchQuery(params.query || undefined)
analytics.track({
userId: claims.uid,
event: 'search',
properties: {
env: env.server.apiEnv,
...searchQuery,
},
})
let results: SearchItemData[]
let totalCount: number
@ -1036,17 +1018,6 @@ export const updatesSinceResolver = authorized<
return { errorCodes: [UpdatesSinceErrorCode.Unauthorized] }
}
analytics.track({
userId: uid,
event: 'updatesSince',
properties: {
env: env.server.apiEnv,
since,
first,
after,
},
})
const sort = sortParamsToElasticSort(sortParams)
const startCursor = after || ''