Skip to content

Commit 7aa4435

Browse files
committed
fix: run formatter
1 parent 21155c8 commit 7aa4435

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

jobs/check_hold_invoice_expired.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import * as messages from '../bot/messages';
1010
const 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);

0 commit comments

Comments
 (0)