fix(rd21): retain draft revisions and qualify conflict recovery
This commit is contained in:
@@ -69,7 +69,7 @@ async function seed(page: Page, owner: Owner) {
|
||||
items: ['Recorded custom fact with relevant professional context.', 'Another recorded custom fact, preserved during unrelated contact editing.'] }],
|
||||
};
|
||||
const raw = 'Exact original career source — æøå\nRecorded work and qualifications.\n';
|
||||
await json<CareerReadback>(await page.request.put(`${apiUrl}/career/profile`, { headers: owner.headers, data: { profile, cvText: raw } }));
|
||||
await json<CareerReadback>(await page.request.put(`${apiUrl}/career/profile`, { headers: owner.headers, data: { expectedVersion: (await (await page.request.get(`${apiUrl}/career/profile`)).json()).revision, profile, cvText: raw } }));
|
||||
return { canonical: await json<CareerReadback>(await page.request.get(`${apiUrl}/career/profile`)),
|
||||
history: await json<unknown[]>(await page.request.get(`${apiUrl}/career/profile/versions`)) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user