fix(pipeline): call papi2 with x-pipeline-version 'latest', not 'draft'
'draft' is the authoring working copy and only exists on the env where the pipeline is edited (dev). On a consumer env (qa) only published versions are deployed, so a draft call returns 'starter node not found'. 'latest' resolves to the latest published version, which exists on every env (matches how DailySalesReportPage already calls it).
This commit is contained in:
parent
99467465c6
commit
fe9a985466
@ -143,7 +143,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId:
|
||||
try {
|
||||
const headers: Record<string, string> = {
|
||||
'templateid': '192',
|
||||
'x-pipeline-version': 'draft',
|
||||
'x-pipeline-version': 'latest',
|
||||
'orgid': '57',
|
||||
'groupid': '25'
|
||||
};
|
||||
@ -181,7 +181,7 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId:
|
||||
try {
|
||||
const headers: Record<string, string> = {
|
||||
'templateid': '192',
|
||||
'x-pipeline-version': 'draft',
|
||||
'x-pipeline-version': 'latest',
|
||||
'orgid': '57',
|
||||
'groupid': '25'
|
||||
};
|
||||
|
||||
@ -125,7 +125,7 @@ export function LogVisitForm({ client, onSuccess, onCancel, onActivityChange }:
|
||||
try {
|
||||
const headers: Record<string, string> = {
|
||||
'templateid': '192',
|
||||
'x-pipeline-version': 'draft',
|
||||
'x-pipeline-version': 'latest',
|
||||
'orgid': '57',
|
||||
'groupid': '25'
|
||||
};
|
||||
|
||||
@ -75,7 +75,7 @@ export function DailyLogMap({
|
||||
'groupid': '25',
|
||||
'orgid': '57',
|
||||
'templateid': '189',
|
||||
'x-pipeline-version': 'draft'
|
||||
'x-pipeline-version': 'latest'
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user