Compare commits
	
		
			No commits in common. "d1c770dbbc832cb28ad5e301fc11ae0e2bc2f8b9" and "7e5a8310dfa6637834490b96bb20b77ad056a603" have entirely different histories.
		
	
	
		
			d1c770dbbc
			...
			7e5a8310df
		
	
		
| @ -675,16 +675,6 @@ const resolvers = { | ||||
| export default injectResolvers(resolvers) | ||||
| 
 | ||||
| export const walletLogger = ({ wallet, models }) => { | ||||
|   // no-op logger if wallet is not provided
 | ||||
|   if (!wallet) { | ||||
|     return { | ||||
|       ok: () => {}, | ||||
|       info: () => {}, | ||||
|       error: () => {}, | ||||
|       warn: () => {} | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   // server implementation of wallet logger interface on client
 | ||||
|   const log = (level) => async (message, context = {}) => { | ||||
|     try { | ||||
|  | ||||
| @ -414,7 +414,7 @@ export async function checkPendingDeposits (args) { | ||||
|   const pendingDeposits = await models.invoice.findMany({ where: { confirmedAt: null, cancelled: false } }) | ||||
|   for (const d of pendingDeposits) { | ||||
|     try { | ||||
|       await checkInvoice({ ...args, data: { hash: d.hash } }) | ||||
|       await checkInvoice({ data: { hash: d.hash }, ...args }) | ||||
|       await sleep(10) | ||||
|     } catch { | ||||
|       console.error('error checking invoice', d.hash) | ||||
| @ -427,7 +427,7 @@ export async function checkPendingWithdrawals (args) { | ||||
|   const pendingWithdrawals = await models.withdrawl.findMany({ where: { status: null } }) | ||||
|   for (const w of pendingWithdrawals) { | ||||
|     try { | ||||
|       await checkWithdrawal({ ...args, data: { hash: w.hash } }) | ||||
|       await checkWithdrawal({ data: { hash: w.hash }, ...args }) | ||||
|       await sleep(10) | ||||
|     } catch (err) { | ||||
|       console.error('error checking withdrawal', w.hash, err) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user