Skip to content

Commit

Permalink
Order delayed event actions alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Jul 25, 2024
1 parent 7defbe1 commit 05b13ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ClientWidgetApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ export class ClientWidgetApi extends EventEmitter {

switch (request.data.action) {
case UpdateDelayedEventActionName.Cancel:
case UpdateDelayedEventActionName.Send:
case UpdateDelayedEventActionName.Refresh:
case UpdateDelayedEventActionName.Send:
break
default:
return this.transport.reply<IWidgetApiErrorResponseData>(request, {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/UpdateDelayedEventAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import { IWidgetApiResponseData } from "./IWidgetApiResponse";

export enum UpdateDelayedEventActionName {
Cancel = "cancel",
Send = "send",
Refresh = "refresh",
Send = "send",
}

export interface IUpdateDelayedEventFromWidgetRequestData extends IWidgetApiRequestData {
Expand Down

0 comments on commit 05b13ad

Please sign in to comment.