diff --git a/app.ts b/app.ts index 854a27e1..6151bbaf 100644 --- a/app.ts +++ b/app.ts @@ -39,7 +39,7 @@ async function startServer() { new ProfilingIntegration(), ], tracesSampleRate: 0.005, - profilesSampleRate: 0.005, + profilesSampleRate: 0.1, beforeSend(event, hint) { const error = hint.originalException as string; if (error?.toString().includes('Unknown token:')) { diff --git a/modules/token/token.service.ts b/modules/token/token.service.ts index a62c89a0..8b2258e3 100644 --- a/modules/token/token.service.ts +++ b/modules/token/token.service.ts @@ -217,7 +217,7 @@ export class TokenService { } public async purgeOldTokenPricesForAllChains() { - await this.tokenPriceService.purgeOldTokenPricesForAllChains(); + return this.tokenPriceService.purgeOldTokenPricesForAllChains(); } public async deleteTokenPrice(args: MutationTokenDeletePriceArgs) { diff --git a/worker/worker.ts b/worker/worker.ts index bf16c1ea..375a8095 100644 --- a/worker/worker.ts +++ b/worker/worker.ts @@ -21,7 +21,7 @@ export async function startWorker() { new ProfilingIntegration(), ], tracesSampleRate: 0.005, - profilesSampleRate: 0.005, + profilesSampleRate: 0.1, }); app.use(Sentry.Handlers.requestHandler());