Skip to content

Commit

Permalink
update gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jchartrand committed Oct 25, 2023
1 parent c7b8445 commit adcdaf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,6 @@ dist

# MacOS
.DS_Store

# the keyv data store
src/data
4 changes: 2 additions & 2 deletions src/transactionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const setupExchange = async (exchangeData) => {
// A wallet query is either a deeplink, or a VPR for use with CHAPI.
const exchangeHost = exchangeData.exchangeHost;
const tenantName = exchangeData.tenantName;
const processRecord = getProcessRecordFnForExchangeHostAndTenant(exchangeHost, tenantName)
const processRecord = bindProcessRecordFnToExchangeHostAndTenant(exchangeHost, tenantName)
return await Promise.all(exchangeData.data.map(processRecord))
}

Expand Down Expand Up @@ -82,7 +82,7 @@ export const getDIDAuthVPR = async (exchangeId) => {
}
}

const getProcessRecordFnForExchangeHostAndTenant = (exchangeHost, tenantName) => {
const bindProcessRecordFnToExchangeHostAndTenant = (exchangeHost, tenantName) => {
// returns a function for processing incoming records, bound to the specific exchangeHost and tenant
return async (record) => {
record.tenantName = tenantName
Expand Down

0 comments on commit adcdaf8

Please sign in to comment.