Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenkii committed Jun 23, 2024
1 parent 3e17559 commit 665c969
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/backend/etfms/etfms.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
import { Injectable } from '@nestjs/common';
import { Inject, Injectable } from '@nestjs/common';
import Agenda from 'agenda';

import { ECFMP_MEASURE_MODEL, EcfmpMeasureModel } from '../ecfmp/ecfmp-measure.model';
import { AGENDA_PROVIDER } from '../schedule.module';

@Injectable()
export class EtfmsService {}
export class EtfmsService {
constructor(
@Inject(ECFMP_MEASURE_MODEL) private ecfmpMeasureModel: EcfmpMeasureModel,
@Inject(AGENDA_PROVIDER) private agenda: Agenda,
) {
this.agenda.define('ETFMS_assignMeasures', this.assignMeasures.bind(this));
this.agenda.every('1 minute', 'ETFMS_assignMeasures');
}

async assignMeasures() {

}


}

0 comments on commit 665c969

Please sign in to comment.