feat: enhance consumer and partner middleware with Redis caching
- Added Redis caching to ConsumerMiddleware and PartnerMiddleware to improve performance by reducing database calls for consumer and partner data. - Implemented logic to check for cached data before querying the database. - Updated the InvoicesService to include settlement_type in the selected fields. - Removed unnecessary console logs from CustomersService. - Modified SalesInvoicesService to optimize query logic and improve performance. - Updated StatisticsService to streamline data retrieval and processing. - Created a new migration to add last_attempt_no and last_tsp_status columns to sales_invoices for better tracking of TSP attempts.
This commit is contained in:
@@ -634,7 +634,9 @@ export const SalesInvoiceScalarFieldEnum = {
|
||||
pos_id: 'pos_id',
|
||||
settlement_type: 'settlement_type',
|
||||
discount_amount: 'discount_amount',
|
||||
tax_amount: 'tax_amount'
|
||||
tax_amount: 'tax_amount',
|
||||
last_tsp_status: 'last_tsp_status',
|
||||
last_attempt_no: 'last_attempt_no'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
|
||||
|
||||
Reference in New Issue
Block a user