Переименован сервис для выполнения задач формирования отчётов по расписанию

This commit is contained in:
Pavel Gnedov 2024-12-12 07:22:10 +07:00
parent 01c54b2d65
commit 159e2ea17a
3 changed files with 6 additions and 6 deletions

View file

@ -54,7 +54,7 @@ import { CalendarEnhancer } from '@app/event-emitter/issue-enhancers/calendar-en
import { Dashboards as DashboardsDs } from '@app/event-emitter/couchdb-datasources/dashboards'; import { Dashboards as DashboardsDs } from '@app/event-emitter/couchdb-datasources/dashboards';
import { DashboardInitService } from './dashboards/dashboard-init.service'; import { DashboardInitService } from './dashboards/dashboard-init.service';
import { TelegramBotController } from './telegram-bot/telegram-bot.controller'; import { TelegramBotController } from './telegram-bot/telegram-bot.controller';
import { DailyEccmV2ReportService } from './reports/daily-eccm-v2.report.service'; import { DailyEccmV2ReportTaskRunnerService } from './reports/daily-eccm-v2-report-task-runner.service';
import { DashboardsService } from '@app/event-emitter/dashboards/dashboards.service'; import { DashboardsService } from '@app/event-emitter/dashboards/dashboards.service';
import { DailyEccmReportsV2Datasource } from './couchdb-datasources/daily-eccm-reports-v2.datasource'; import { DailyEccmReportsV2Datasource } from './couchdb-datasources/daily-eccm-reports-v2.datasource';
@ -120,7 +120,7 @@ import { DailyEccmReportsV2Datasource } from './couchdb-datasources/daily-eccm-r
DashboardInitService, DashboardInitService,
DashboardsService, DashboardsService,
DailyEccmReportsV2Datasource, DailyEccmReportsV2Datasource,
DailyEccmV2ReportService, DailyEccmV2ReportTaskRunnerService,
], ],
}) })
export class AppModule implements OnModuleInit { export class AppModule implements OnModuleInit {
@ -151,7 +151,7 @@ export class AppModule implements OnModuleInit {
private dashboardInitService: DashboardInitService, private dashboardInitService: DashboardInitService,
private dashboardsService: DashboardsService, private dashboardsService: DashboardsService,
private dailyEccmV2ReportService: DailyEccmV2ReportService, private dailyEccmV2ReportService: DailyEccmV2ReportTaskRunnerService,
) {} ) {}
onModuleInit() { onModuleInit() {

View file

@ -1,7 +1,7 @@
import { Injectable, Logger } from '@nestjs/common'; import { Injectable, Logger } from '@nestjs/common';
import { CouchDb } from '@app/event-emitter/couchdb-datasources/couchdb'; import { CouchDb } from '@app/event-emitter/couchdb-datasources/couchdb';
import nano from 'nano'; import nano from 'nano';
import { Report } from 'src/reports/daily-eccm-v2.report.service'; import { Report } from 'src/reports/daily-eccm-v2-report-task-runner.service';
@Injectable() @Injectable()
export class DailyEccmReportsV2Datasource { export class DailyEccmReportsV2Datasource {

View file

@ -35,8 +35,8 @@ export const JOB_PREFIX = 'daily_eccm_v2';
export const UPDATE_RATE = 60 * 1000; export const UPDATE_RATE = 60 * 1000;
@Injectable() @Injectable()
export class DailyEccmV2ReportService { export class DailyEccmV2ReportTaskRunnerService {
private logger = new Logger(DailyEccmV2ReportService.name); private logger = new Logger(DailyEccmV2ReportTaskRunnerService.name);
private dashboardsService: DashboardsService; private dashboardsService: DashboardsService;