Backend Track • Intermediate • 3 mins review

Feat: Add Invoice search and bulk export

This PR adds a new endpoint to search invoices by reference, and a worker job to export invoice details.

Scenario Goal & Context

Goal: Implement a fast search method in the repository and a batch export worker that processes a list of invoices.

Background: The customer success team needs to quickly find invoices by exact reference ID and export them for daily reporting.

Changed Files (3)

  • src/repository/InvoiceRepository.ts +12 -2
  • src/jobs/InvoiceExportJob.ts +10 -3
  • test/jobs/InvoiceExportJob.test.ts +12 -0

Ready to practice reviewing this PR?

Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.

Start Review Session