api: fix event type and description for createTag (#6779)

Fixes #6777

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2022-09-29 11:10:30 +05:30 committed by GitHub
parent 64316d513c
commit 432a03fb02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -106,17 +106,17 @@ public class CreateTagsCmd extends BaseAsyncCmd {
SuccessResponse response = new SuccessResponse(getCommandName());
setResponseObject(response);
} else {
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to upload resource icon");
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to create resource tag(s)");
}
}
@Override
public String getEventType() {
return EventTypes.EVENT_RESOURCE_ICON_UPLOAD;
return EventTypes.EVENT_TAGS_CREATE;
}
@Override
public String getEventDescription() {
return "Uploading resource icon";
return "Creating resource tag(s)";
}
}