Skip to content

Commit

Permalink
Use better name for response containing only a message.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Sep 10, 2020
1 parent 3722ec5 commit bad3b65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface InstallPackageResponse {
response: AssetReference[];
}

export interface InstallTmpPackageResponse {
export interface MessageResponse {
response: string;
}

Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/ingest_manager/server/routes/epm/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { appContextService } from '../../services';
import {
GetInfoResponse,
InstallPackageResponse,
InstallTmpPackageResponse,
MessageResponse,
DeletePackageResponse,
GetCategoriesResponse,
GetPackagesResponse,
Expand Down Expand Up @@ -190,7 +190,7 @@ export const installPackageByUploadHandler: RequestHandler<
undefined,
TypeOf<typeof InstallPackageByUploadRequestSchema.body>
> = async (context, request, response) => {
const body: InstallTmpPackageResponse = {
const body: MessageResponse = {
response: 'package upload was received ok, but not installed (not implemented yet)',
};
return response.ok({ body });
Expand Down

0 comments on commit bad3b65

Please sign in to comment.