Skip to content

Commit

Permalink
Merge branch 'main' into affectation-superadmin-can-bypass-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobret authored Nov 13, 2024
2 parents 2fee862 + b7598b2 commit bdea66b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/crons/JeVeuxAiderDaily.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const sync = async (result) => {
zip: mission.postalCode,
address: mission.address,
city: mission.city,
department: mission.department,
department: mission.departmentName,
region: mission.region,
country: "France",
location: mission.location,
Expand Down
2 changes: 1 addition & 1 deletion api/src/crons/computeGoalsInscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const getGoalAndComputeFillingRates = async ({ department, values }) => {
if (inscriptionGoal.max) {
const fillingRate = ((values[inscriptionGoal.cohort] || 0) / (inscriptionGoal.max || 0)) * 100;
inscriptionGoal.set({ fillingRate });
await inscriptionGoal.save();
await inscriptionGoal.save({ fromUser: { firstName: "Cron computeGoalsInscription" } });
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/crons/syncApiEngagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const sync = async (result) => {
await MissionAPIModel.create(t);
} else {
m.set({ ...t });
await m.save();
await m.save({ fromUser: { firstName: "Cron syncApiEngagement" } });
}
}
return result.data.length === SIZE;
Expand Down

0 comments on commit bdea66b

Please sign in to comment.