From d77499c75d2cd6e707a489c375a585bca4e8c498 Mon Sep 17 00:00:00 2001 From: franz Date: Tue, 9 Jan 2024 16:24:51 +0100 Subject: [PATCH] fix minor --- app.ts | 2 +- modules/token/token.service.ts | 2 +- worker/worker.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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());