Skip to content

Commit

Permalink
fix getCanadianBankName
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Oct 3, 2024
1 parent a91abb8 commit c694097
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion database/getLicence.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export default function getLicence(licenceId) {
});
database.function('userFn_dateIntegerToString', dateTimeFunctions.dateIntegerToString);
database.function('userFn_timeIntegerToString', dateTimeFunctions.timeIntegerToString);
database.function('userFn_getCanadianBankName', getCanadianBankName);
database.function('userFn_getCanadianBankName', (institutionNumber, transitNumber) => {
return getCanadianBankName(institutionNumber, transitNumber);
});
const licence = database
.prepare(`select licenceId, licenceCategoryKey,
licenceNumber,
Expand Down
7 changes: 6 additions & 1 deletion database/getLicence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export default function getLicence(
'userFn_timeIntegerToString',
dateTimeFunctions.timeIntegerToString
)
database.function('userFn_getCanadianBankName', getCanadianBankName)
database.function(
'userFn_getCanadianBankName',
(institutionNumber: string, transitNumber?: string) => {
return getCanadianBankName(institutionNumber, transitNumber)
}
)

const licence = database
.prepare(
Expand Down

0 comments on commit c694097

Please sign in to comment.