Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/src/controllers/loanController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
try {
const { loanId } = req.params;

const borrower = (req as any).user?.publicKey as string;

Check warning on line 55 in backend/src/controllers/loanController.ts

View workflow job for this annotation

GitHub Actions / backend

Unexpected any. Specify a different type

const result = await query('SELECT * FROM loans WHERE id = $1', [loanId]);
const loan = result.rows[0] as Record<string, unknown> | undefined;
Expand Down Expand Up @@ -225,7 +225,7 @@
return result.rows[0]?.last_indexed_ledger ?? 0;
};

const roundToCents = (value: number): number => Math.floor((value + Number.EPSILON) * 100) / 100;
const roundToCents = (value: number): number => Math.round((value + Number.EPSILON) * 100) / 100;

const addDays = (date: Date, days: number): Date => {
const result = new Date(date);
Expand Down
Loading