Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
brafdlog committed Nov 1, 2024
1 parent 866c2d6 commit aa4fff9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions packages/main/src/backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ import moment from 'moment';
import * as configManager from './configManager/configManager';
import * as Events from './eventEmitters/EventEmitter';
import outputVendors from './export/outputVendors';
import * as bankScraper from './import/bankScraper';
import logger from '../logging/logger';

export { CompanyTypes } from 'israeli-bank-scrapers-core';
export { Events, configManager, outputVendors };

export const { inputVendors } = bankScraper;

let intervalId: NodeJS.Timeout | null = null;

export async function scrapePeriodicallyIfNeeded(config: Config, optionalEventPublisher?: Events.EventPublisher) {
Expand Down Expand Up @@ -50,14 +47,12 @@ export async function scrapeAndUpdateOutputVendors(config: Config, optionalEvent
eventPublisher,
);
try {
const executionResult = await createTransactionsInExternalVendors(
return await createTransactionsInExternalVendors(
config.outputVendors,
companyIdToTransactions,
startDate,
eventPublisher,
);

return executionResult;
} catch (e) {
logger.error('Failed to create transactions in external vendors', e);
await eventPublisher.emit(
Expand Down
2 changes: 1 addition & 1 deletion packages/preload/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import { stopPeriodicScraping } from './eventsBridge';
export * from './eventsBridge';

// Clear the interval that scrapes periodically
stopPeriodicScraping();
await stopPeriodicScraping();

0 comments on commit aa4fff9

Please sign in to comment.