mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 16:02:36 +00:00
Merge branch 'main' into datatable-roles-redesign
This commit is contained in:
@@ -224,9 +224,12 @@ export async function pushTrigger<K extends TriggerType>(
|
||||
}
|
||||
}
|
||||
|
||||
// `enabled` is operational state a sync deliberately does not carry: the server strips it from
|
||||
// the workspace export and the push below never sends it, so a created trigger comes up enabled
|
||||
// and pausing one stays a local decision.
|
||||
type NativeTriggerFile = Omit<
|
||||
NativeTrigger,
|
||||
"external_id" | "workspace_id" | "error"
|
||||
"external_id" | "workspace_id" | "error" | "enabled"
|
||||
>;
|
||||
|
||||
export async function pushNativeTrigger(
|
||||
@@ -264,6 +267,7 @@ export async function pushNativeTrigger(
|
||||
service_config: result.service_config,
|
||||
error: result.error,
|
||||
summary: result.summary,
|
||||
enabled: result.enabled,
|
||||
};
|
||||
log.debug(`Native trigger ${serviceName}/${externalId} exists on remote`);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user