Skip to content

Commit

Permalink
- Add fail status in case of the error
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-s committed Nov 28, 2024
1 parent cc06fb6 commit f81fd89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/position-processor/position-processor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class PositionProcessorService {
`Purchased the token: ${position.raydiumPool}`,
);
} catch (e) {
await this.positionService.updateStatus(position, StatusEnum.FAILED);
Sentry.captureException(e);
this.logger.error(`Something is wrong: ${e.message}`);
}
Expand Down

0 comments on commit f81fd89

Please sign in to comment.