From 3d1aa4e572fbf4bc7b0a527a3fdcf4c521af18dd Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Tue, 20 Dec 2022 23:33:44 +0330 Subject: [PATCH 1/3] fix(fetch): fetch_cache_not_found is not error --- core/fetch/src/fetch.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/fetch/src/fetch.ts b/core/fetch/src/fetch.ts index c9e71f54a..eca2a8fcc 100644 --- a/core/fetch/src/fetch.ts +++ b/core/fetch/src/fetch.ts @@ -190,7 +190,12 @@ async function _handleCacheStrategy(options: Required): Promise Date: Tue, 20 Dec 2022 23:34:09 +0330 Subject: [PATCH 2/3] lint(signal): format --- core/signal/src/signal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/signal/src/signal.ts b/core/signal/src/signal.ts index 6221fea44..f9f6b7715 100644 --- a/core/signal/src/signal.ts +++ b/core/signal/src/signal.ts @@ -160,7 +160,7 @@ export class SignalInterface { const nextSignalValuePromise = this.getNextSignalValue(); _dispatchSignal( this._requestSignal, - requestParam as unknown as AlwatrSignals[SignalName], // mastmalize to avoid type error + requestParam as unknown as AlwatrSignals[SignalName], // mastmalize to avoid type error ); return nextSignalValuePromise; } From 1d3275cd4129960b15a03d03e4c468a839e7f3c2 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Tue, 20 Dec 2022 23:34:29 +0330 Subject: [PATCH 3/3] feat(flight-crawler): update message --- services/flight-crawler/src/crawl.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/flight-crawler/src/crawl.ts b/services/flight-crawler/src/crawl.ts index f27ea915e..9078b4756 100644 --- a/services/flight-crawler/src/crawl.ts +++ b/services/flight-crawler/src/crawl.ts @@ -138,9 +138,7 @@ function makeMessage(job: Job): string { // prettier-ignore const resultListStr = job.resultList.length === 0 ? 'هیچ پروازی یافت نشد!' : job.resultList.map((jobResult) => ` - قیمت: ${jobResult.price.toLocaleString('en-US')} - ساعت: ${jobResult.time} - هواپیمایی ${jobResult.airline} + 💰${jobResult.price.toLocaleString('en-US')} ⏰${jobResult.time} 💺${jobResult.seatCount} 🛫${jobResult.flightId} `).join(''); return `