Отпуск: последний согласующий сначала отправляет заявление в ЭДО — не ушло, решение не сохраняется и заявка остаётся на согласовании; повтор не плодит дубли
Tests / frontend-test (pull_request) Successful in 1m23s
Tests / frontend-test (pull_request) Successful in 1m23s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AadHttpClient, HttpClientResponse } from '@microsoft/sp-http';
|
||||
import { WebPartContext } from '@microsoft/sp-webpart-base';
|
||||
import { EDO_API_CLIENT_ID, getEdoApiBaseUrl } from '../config';
|
||||
import { describeEdoError } from './edoErrors';
|
||||
import { EdoRequestError } from './edoErrors';
|
||||
import { IFioParts } from './fio';
|
||||
|
||||
/** Путь приёма документов на подпись от интеграций (TANSU ЭДО, multipart/form-data). */
|
||||
@@ -87,7 +87,7 @@ export async function submitSigningRequest(
|
||||
}
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(describeEdoError(response.status, await response.text()));
|
||||
throw new EdoRequestError(response.status, await response.text());
|
||||
}
|
||||
|
||||
const body = (await response.json()) as IEdoResponseBody;
|
||||
|
||||
Reference in New Issue
Block a user