Skip to content

Commit

Permalink
[TGA-62] Add httpRequestVoidLocal to SuperdeskApi (#4341)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 authored Oct 18, 2023
1 parent 4950266 commit 392bf99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/core/get-superdesk-api-implementation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import {AuthoringWorkspaceService} from 'apps/authoring/authoring/services/Autho
import ng from 'core/services/ng';
import {Spacer} from './ui/components/Spacer';
import {appConfig} from 'appConfig';
import {httpRequestJsonLocal} from './helpers/network';
import {httpRequestJsonLocal, httpRequestVoidLocal} from './helpers/network';
import {memoize as memoizeLocal} from './memoize';
import {generatePatch} from './patch';
import {getLinesCount} from 'apps/authoring/authoring/components/line-count';
Expand Down Expand Up @@ -222,6 +222,7 @@ export function getSuperdeskApiImplementation(
nameof: nameof,
},
httpRequestJsonLocal,
httpRequestVoidLocal,
getExtensionConfig: () => extensions[requestingExtensionId]?.configuration ?? {},
entities: {
article: {
Expand Down
1 change: 1 addition & 0 deletions scripts/core/superdesk-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,7 @@ declare module 'superdesk-api' {
};
elasticsearch: IElasticSearchApi;
httpRequestJsonLocal<T>(options: IHttpRequestJsonOptionsLocal): Promise<T>;
httpRequestVoidLocal(options: IHttpRequestOptionsLocal): Promise<void>;
state: {
articleInEditMode?: IArticle['_id'];
};
Expand Down

0 comments on commit 392bf99

Please sign in to comment.