Compare commits

..

23 Commits

Author SHA1 Message Date
Sosthene
103cfbd23c Don't trigger updateUser on missing email/phone
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m43s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-24 00:03:49 +02:00
Sosthene
59ffd0a974 Fix null values with prisma
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m50s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 2s
2025-07-23 23:29:51 +02:00
Sosthene
feeeb18f9f Fix async issue
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m43s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-23 20:02:14 +02:00
Sosthene
f15aeae91e more verbosity
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m48s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-23 18:01:23 +02:00
Sosthene
4f0f33a23f Updated userData includes office
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m54s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-23 16:12:33 +02:00
Sosthene
dfc20ab438 Fix updateUser res parsing
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m38s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-23 13:23:54 +02:00
Sosthene
eb45cb3fb8 Merge branch 'fix_update_users' into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m48s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-23 12:59:32 +02:00
Sosthene
98f3ff5dab Fix url 2025-07-23 12:58:58 +02:00
Sosthene
70c481e545 Merge branch 'fix_update_users' into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m43s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-22 19:36:08 +02:00
Sosthene
ac0f5d7b3e more verbosity 2025-07-22 15:55:58 +02:00
Sosthene
b3d82f5b5d Merge branch 'fix_update_users' into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 2m3s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 5s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-22 14:48:24 +02:00
Sosthene
09f12422cd Handle raw response from idnot 2025-07-22 14:48:04 +02:00
Sosthene
6cca4e0fd5 Merge branch 'fix_update_users' into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m51s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-22 14:23:17 +02:00
Omar Oughriss
463327e6a1 Stringify logs 2025-07-22 14:22:10 +02:00
087dd0cd24 Merge pull request 'Stringify logs' (#4) from fix_update_users into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m51s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
Reviewed-on: #4
2025-07-21 15:30:27 +00:00
Omar Oughriss
c90d7fc89a Stringify logs 2025-07-21 17:29:16 +02:00
db54f33f95 Merge pull request 'Update verbosity' (#3) from fix_update_users into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m45s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
Reviewed-on: #3
2025-07-21 15:07:29 +00:00
Omar Oughriss
71a3fe3d22 Update verbosity 2025-07-21 17:06:19 +02:00
b50afa0ec8 Merge pull request 'Add updateUser method verbosity' (#2) from fix_update_users into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m54s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
Reviewed-on: #2
2025-07-21 14:49:48 +00:00
Omar Oughriss
8fd16283d3 Add updateUser method verbosity 2025-07-21 16:48:11 +02:00
Omar Oughriss
5934213e95 Update updateUsers cron job to trigger every 5 min 2025-07-21 15:14:02 +02:00
ff3ef6b3b7 Merge pull request 'Update updateUsers cron job to trigger every 5 min' (#1) from fix_update_users into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m46s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 4s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
Reviewed-on: #1
2025-07-21 13:12:44 +00:00
Sosthene
e5c7d9a972 Merge branch 'fix_update_users' into legacy_dev
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m46s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s
2025-07-21 14:04:55 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export default class CronService {
} }
} }
public async updateUsers() { public async updateUsers() {
const cronJob = new CronJob("0 0 * * *", async () => { const cronJob = new CronJob("*/5 * * * *", async () => {
// Once a day at midnight // Once a day at midnight
try { try {
await this.idNotService.updateOffices(); await this.idNotService.updateOffices();

View File

@ -246,6 +246,7 @@ export default class IdNotService extends BaseService {
return; return;
} else if (userRawData.status !== 200) { } else if (userRawData.status !== 200) {
console.error(`Error fetching user data for ${user.uid}: ${userRawData.status} - ${userRawData.statusText}`); console.error(`Error fetching user data for ${user.uid}: ${userRawData.status} - ${userRawData.statusText}`);
console.error(await userRawData.text());
return; return;
} }