Enhance ESLint configuration and improve code consistency
- Added '@typescript-eslint/no-unused-vars' rule to ESLint configuration for better variable management in TypeScript files. - Updated database.ts to ensure consistent logging format. - Refactored AuthController and CashflowController to improve variable naming and maintainability. - Added spacing for better readability in multiple controller methods. - Adjusted error handling in middleware and repository files for improved clarity. - Enhanced various service and repository methods to ensure consistent return types and error handling. - Made minor formatting adjustments across frontend components for improved user experience.
This commit is contained in:
@@ -42,15 +42,18 @@ export class DebtPaymentController {
|
||||
|
||||
if (accountId) {
|
||||
const payments = await this.paymentService.getByAccount(accountId, userId);
|
||||
|
||||
return reply.send({payments});
|
||||
}
|
||||
|
||||
if (startDate && endDate) {
|
||||
const payments = await this.paymentService.getByDateRange(userId, new Date(startDate), new Date(endDate));
|
||||
|
||||
return reply.send({payments});
|
||||
}
|
||||
|
||||
const payments = await this.paymentService.getAllByUser(userId);
|
||||
|
||||
return reply.send({payments});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user