From 65a5ee5ff3c1b13194d9af721f08874b47f1ca5b Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Tue, 28 Mar 2023 11:15:54 +0200
Subject: [PATCH] feat(structure): disable aptic api (#271)

---
 src/structures/services/aptic-structures.service.ts | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/structures/services/aptic-structures.service.ts b/src/structures/services/aptic-structures.service.ts
index d98ab942a..dec995764 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';
-- 
GitLab