Compare commits

..

13 Commits

Author SHA1 Message Date
Sosthene
4d65cc7389 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 1m44s
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-24 00:10:26 +02:00
Sosthene
6c30016e0d Don't trigger updateUser on missing email/phone 2025-07-24 00:08:25 +02:00
Sosthene
3e88c93357 Fix null values with prisma 2025-07-24 00:08:25 +02:00
Sosthene
9bfc33a5c7 Fix async issue 2025-07-24 00:08:25 +02:00
Sosthene
df3ac394b2 more verbosity 2025-07-24 00:08:25 +02:00
Sosthene
d794bfbbc9 Updated userData includes office 2025-07-24 00:08:25 +02:00
Sosthene
0949770e66 Fix updateUser res parsing 2025-07-24 00:08:25 +02:00
Sosthene
a132e36308 Fix url 2025-07-24 00:08:25 +02:00
Sosthene
384e139ced more verbosity 2025-07-24 00:08:25 +02:00
Sosthene
b96720c0af Handle raw response from idnot 2025-07-24 00:08:25 +02:00
Omar Oughriss
6344f6be15 Stringify logs 2025-07-24 00:08:25 +02:00
Omar Oughriss
1c1a1e3a04 Update verbosity 2025-07-24 00:08:25 +02:00
Omar Oughriss
28cf728eac Add updateUser method verbosity 2025-07-24 00:08:25 +02:00
2 changed files with 1 additions and 2 deletions

View File

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

View File

@ -246,7 +246,6 @@ 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;
} }