true message

This commit is contained in:
Manus
2026-06-30 09:15:28 -04:00
parent cffb3d4201
commit 288bcf982c
6 changed files with 61 additions and 122 deletions

View File

@@ -372,10 +372,8 @@ export const appRouter = router({
sharepoint_token: z.string().optional(),
auth_mode: z.enum(["local", "free"]).optional(),
import_time: z.string().optional(),
fetch_mode: z.enum(["daily", "weekly", "monthly", "interval", "scheduled"]).optional(),
fetch_mode: z.enum(["scheduled", "interval"]).optional(),
fetch_interval_minutes: z.string().optional(),
fetch_week_day: z.string().optional(),
fetch_month_day: z.string().optional(),
})
)
.mutation(async ({ input }) => {
@@ -385,7 +383,7 @@ export const appRouter = router({
}
await setSettings(toSave);
// Recharger le cron si la planification a changé
if (toSave.import_time || toSave.fetch_mode || toSave.fetch_interval_minutes || toSave.fetch_week_day || toSave.fetch_month_day) {
if (toSave.import_time || toSave.fetch_mode || toSave.fetch_interval_minutes) {
await scheduleDailyImport();
}
return { success: true };