Skip to content

Commit

Permalink
fix(dashboard/utils): remove unnecessary restoreBot function parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev committed Dec 24, 2024
1 parent 3a89540 commit 1d0681a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/(dashboard)/dashboard/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ export const deleteBotDenyRecord = id => sendRequest({
loadingMessage: `Deleting bot deny record ${id}..`
});

export const restoreBot = (id, reason) => sendRequest({
params: { id, reason },
export const restoreBot = id => sendRequest({
params: { id },
promise: INTERNAL_restoreBot,
successMessage: `Bot ${id} restored successfully! Please review it again.`,
loadingMessage: `Restoring bot ${id}..`
Expand Down

0 comments on commit 1d0681a

Please sign in to comment.