File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import * as messages from '../bot/messages';
1010const checkHoldInvoiceExpired = async ( bot : HasTelegram ) => {
1111 try {
1212 const holdInvoiceExpiration = holdInvoiceExpirationInSecs ( ) ;
13- const expirationTimeInMs = holdInvoiceExpiration . expirationTimeInSecs * 1000 ;
13+ const expirationTimeInMs =
14+ holdInvoiceExpiration . expirationTimeInSecs * 1000 ;
1415 const now = new Date ( ) ;
1516 const holdExpiredBefore = new Date ( now . getTime ( ) - expirationTimeInMs ) ;
1617
@@ -50,8 +51,12 @@ const checkHoldInvoiceExpired = async (bot: HasTelegram) => {
5051 updatedOrder . status = 'HOLD_INVOICE_EXPIRED' ;
5152 await updatedOrder . save ( ) ;
5253
53- const buyerUser = await User . findOne ( { _id : updatedOrder . buyer_id } ) ;
54- const sellerUser = await User . findOne ( { _id : updatedOrder . seller_id } ) ;
54+ const buyerUser = await User . findOne ( {
55+ _id : updatedOrder . buyer_id ,
56+ } ) ;
57+ const sellerUser = await User . findOne ( {
58+ _id : updatedOrder . seller_id ,
59+ } ) ;
5560 if ( buyerUser !== null && sellerUser !== null ) {
5661 const i18nCtxBuyer = await getUserI18nContext ( buyerUser ) ;
5762 const i18nCtxSeller = await getUserI18nContext ( sellerUser ) ;
You can’t perform that action at this time.
0 commit comments