Skip to content

Commit

Permalink
test twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdo committed Jan 13, 2024
1 parent b845949 commit 35eacdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/cronjobs/cronjobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export class CronJobsService {
watch() {
// https://crontab.guru/#0_8_*_*_1 :)
schedule(
'0 8 * * 5',
// '0 8 * * 5',
'25 15 * * 6',
async () => {
try {
if (process.env.STOP_TWITTER) { return }
Expand Down
12 changes: 6 additions & 6 deletions src/cronjobs/delation/name-and-shame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ export class NameAndShameService {

async call() {
[
['paris', 'Paris', '@Paris'],
['plaineCommune', 'Plaine Commune', '@prefpolice'],
['lille', 'Lille', '@prefet59'],
['lyon', 'Lyon', '@prefetrhone'],
['estEnsemble', 'Est Ensemble', '@prefpolice'],
['bordeaux', 'Bordeaux', '@PrefAquitaine33'],
// ['paris', 'Paris', '@Paris'],
// ['plaineCommune', 'Plaine Commune', '@prefpolice'],
// ['lille', 'Lille', '@prefet59'],
// ['lyon', 'Lyon', '@prefetrhone'],
// ['estEnsemble', 'Est Ensemble', '@prefpolice'],
// ['bordeaux', 'Bordeaux', '@PrefAquitaine33'],
['montpellier', 'Montpellier', '@Prefet34'],
].forEach(async ([city, cityValue, prefecture]) => {
const ads = await rentService.getShamefulAdsData(city, MAX_DELTA)
Expand Down

0 comments on commit 35eacdd

Please sign in to comment.