diff options
author | Joas Schilling <coding@schilljs.com> | 2024-07-10 12:59:54 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-07-10 13:00:56 +0200 |
commit | ed93b6f1be7e9649351d363e9770ee20fccfe320 (patch) | |
tree | d22e273f90cadf0db4ff1ba10a46e2eb46ea5ad2 | |
parent | ebe4932868aeaee7b72fdd5b706d1091dd51b1ec (diff) |
fix(ban): Fix frontend call to unban
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/services/banService.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/services/banService.ts b/src/services/banService.ts index 0f90ac1f0..5ca754ecf 100644 --- a/src/services/banService.ts +++ b/src/services/banService.ts @@ -42,11 +42,8 @@ const banActor = async function(token: string, payload: banActorParams, options? * @param banId - ban id * @param [options] - request options */ -const unbanActor = async function(token: string, banId: unbanActorParams['banId'], options?: object): unbanActorResponse { - return axios.delete(generateOcsUrl('/apps/spreed/api/v1/ban/{token}', { token }, options), { - ...options, - params: { banId } as unbanActorParams, - }) +const unbanActor = async function(token: string, banId: number, options?: object): unbanActorResponse { + return axios.delete(generateOcsUrl('/apps/spreed/api/v1/ban/{token}/{banId}', { token, banId }, options), options) } export { |