mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove backend events that we dont need to watch
This commit is contained in:
parent
7f81771e4a
commit
aaf6bb617f
1 changed files with 0 additions and 29 deletions
|
|
@ -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 || ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue