fix: deleting a list returning an error as success

This commit is contained in:
Mar0xy 2023-10-30 13:00:58 +01:00
parent 46bb5f2dac
commit 4fa15f27c7
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -257,7 +257,7 @@ export class ApiTimelineMastodon {
const client = getClient(BASE_URL, accessTokens); const client = getClient(BASE_URL, accessTokens);
const params: any = _request.params; const params: any = _request.params;
const data = await client.deleteList(params.id); const data = await client.deleteList(params.id);
reply.send(data.data); reply.send({});
} catch (e: any) { } catch (e: any) {
console.error(e); console.error(e);
console.error(e.response.data); console.error(e.response.data);