Skip to content
Snippets Groups Projects
Commit 65a5ee5f authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

feat(structure): disable aptic api (#271)

parent 9103c176
No related branches found
No related tags found
1 merge request!277V2.2.0
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';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment