Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): make scheduled-task edits atomic #11592

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/11592/headopened View on GitHub

Showing 25 changed files with 58 additions and 25 deletions (loading 24).

x
0 of 25 viewed, 25 left
58 additions and 25 deletionsapps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsxModified
View file
@@ -3,6 +3,7 @@
import {
AuthOrchestrationOperateScope,
resolveProjectProviderInstanceEnabled,
+ scheduledTaskLegacyUpsert,
} from "@t3tools/contracts";
import { readEnvironmentScope } from "../../state/session";
import type {
@@ -73,6 +74,7 @@
import { SettingsSection } from "./components/SettingsSection";
import { useSettingsEnvironmentFilter, type SettingsTarget } from "./settings-environment-filter";
import {
+ buildScheduledTaskUpdateInput,
editDraft,
scheduledTaskDefaultModel,
scheduleFromDraft,
@@ -597,6 +599,10 @@
label: "scheduled task upsert",
reportFailure: false,
});
+ const update = useAtomCommand(serverEnvironment.updateScheduledTask, {
+ label: "scheduled task update",
+ reportFailure: false,
+ });
const submissionPending = useRef(false);
const [timePickerOpen, setTimePickerOpen] = useState(false);
const taskMissing =