From 5359633c743455739a8b6fe64e246c832656b4d0 Mon Sep 17 00:00:00 2001 From: Tusooa Zhu Date: Mon, 1 Aug 2022 11:08:32 -0400 Subject: [PATCH] Fix timed mute lint --- src/services/api/api.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index c7a36af921..b8c10b2138 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -1121,7 +1121,7 @@ const fetchMutes = ({ credentials }) => { const muteUser = ({ id, expiresIn, credentials }) => { const payload = {} if (expiresIn) { - payload['expires_in'] = expiresIn + payload.expires_in = expiresIn } return promisedRequest({ url: MASTODON_MUTE_USER_URL(id), credentials, method: 'POST', payload }) }