diff --git a/src/structures/services/aptic-structures.service.ts b/src/structures/services/aptic-structures.service.ts index d98ab942afe3877bcb7a7380221dee2f5be034ed..dec995764892f961130b72a28753c2a51c1ddac2 100644 --- a/src/structures/services/aptic-structures.service.ts +++ b/src/structures/services/aptic-structures.service.ts @@ -1,7 +1,6 @@ import { HttpService } from '@nestjs/axios'; import { Injectable, Logger } from '@nestjs/common'; import { InjectModel } from '@nestjs/mongoose'; -import { Cron, CronExpression } from '@nestjs/schedule'; import { AxiosResponse } from 'axios'; import * as https from 'https'; import * as _ from 'lodash'; @@ -226,7 +225,6 @@ export class ApticStructuresService { /** * Get Metropole new aptic structure evey week. For testing, please change the expression */ - @Cron(CronExpression.EVERY_WEEK) public getMetropoleMunicipality(): void { const req = 'https://download.data.grandlyon.com/ws/grandlyon/adr_voie_lieu.adrcomgl/all.json?maxfeatures=-1&start=1';